mirror of
https://github.com/ets-labs/python-dependency-injector.git
synced 2025-02-06 14:40:48 +03:00
More refactoring
This commit is contained in:
parent
00fb04f905
commit
711fd64037
|
@ -1,7 +1,7 @@
|
|||
"""Application module."""
|
||||
|
||||
from dependency_injector import containers, providers
|
||||
import github
|
||||
from github import Github
|
||||
|
||||
from . import services, views, webapp
|
||||
|
||||
|
@ -12,7 +12,7 @@ class Application(containers.DeclarativeContainer):
|
|||
config = providers.Configuration()
|
||||
|
||||
github_client = providers.Factory(
|
||||
github.Github,
|
||||
Github,
|
||||
login_or_token=config.github.auth_token,
|
||||
timeout=config.github.request_timeout,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Block a user