mirror of
				https://github.com/ets-labs/python-dependency-injector.git
				synced 2025-11-04 09:57:37 +03:00 
			
		
		
		
	Add return type to main() in application examples
This commit is contained in:
		
							parent
							
								
									609ec5cac8
								
							
						
					
					
						commit
						ae8b9dd853
					
				| 
						 | 
				
			
			@ -15,7 +15,7 @@ def main(
 | 
			
		|||
        user_service: UserService = Provide[Application.services.user],
 | 
			
		||||
        auth_service: AuthService = Provide[Application.services.auth],
 | 
			
		||||
        photo_service: PhotoService = Provide[Application.services.photo],
 | 
			
		||||
):
 | 
			
		||||
) -> None:
 | 
			
		||||
    user = user_service.get_user(email)
 | 
			
		||||
    auth_service.authenticate(user, password)
 | 
			
		||||
    photo_service.upload_photo(user, photo)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -15,7 +15,7 @@ def main(
 | 
			
		|||
        user_service: UserService = Provide[Container.user_service],
 | 
			
		||||
        auth_service: AuthService = Provide[Container.auth_service],
 | 
			
		||||
        photo_service: PhotoService = Provide[Container.photo_service],
 | 
			
		||||
):
 | 
			
		||||
) -> None:
 | 
			
		||||
    user = user_service.get_user(email)
 | 
			
		||||
    auth_service.authenticate(user, password)
 | 
			
		||||
    photo_service.upload_photo(user, photo)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue
	
	Block a user