Skip to content

Commit 5c2fecd

Browse files
Ola AustineOla Austine
authored andcommitted
fix : untightly coupling the config class
1 parent 1463aac commit 5c2fecd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/github_client_service.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313

1414

1515
class GitHubClientService:
16-
def __init__(self):
17-
self.__config = Config()
16+
def __init__(self, config: Config):
17+
self.__config = config
1818

1919
@cached_property
2020
def github_key(self) -> str:

src/linear/linear.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ def response_status_check(response: requests.Response):
1717

1818

1919
class LinearService:
20-
def __init__(self):
21-
self._config = Config()
20+
def __init__(self, config: Config):
21+
self._config = config
2222

2323
@cached_property
2424
def team_id(self) -> UUID | None:

0 commit comments

Comments
 (0)