Skip to content
This repository has been archived by the owner on Sep 24, 2024. It is now read-only.

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
ericLemanissier authored Nov 10, 2022
1 parent 425b0f1 commit 0eb839b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class MatrixGenerator:
repo: str = "conan-center-index"
dry_run: bool = False

def __init__(self, token: str = None, user: str = None, pw: str = None): # noqa: MC0001
def __init__(self, token: str = "", user: str = "", pw: str = ""): # noqa: MC0001
self.session = requests.session()
if token:
self.session.headers["Authorization"] = f"token {token}"
Expand Down Expand Up @@ -121,7 +121,7 @@ def _make_request(self, method: str, url: str, **kwargs) -> requests.Response:


def main() -> None:
d = MatrixGenerator(token=os.getenv("GH_TOKEN"))
d = MatrixGenerator(token=os.getenv("GH_TOKEN", ""))
asyncio.run(d.generate_matrix())


Expand Down

0 comments on commit 0eb839b

Please sign in to comment.