Skip to content

Commit 0dbadba

Browse files
authored
fix: set kwargs to any (#19)
* fix: set kwargs to any * chore: fix rohith's username in codeowners
1 parent 7dcf629 commit 0dbadba

File tree

15 files changed

+34
-37
lines changed

15 files changed

+34
-37
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
# the repo. Unless a later match takes precedence,
88
# @global-owner1 and @global-owner2 will be requested for
99
# review when someone opens a pull request.
10-
* @jbristow @zprobst @ccloes @angelosantos4 @rreddy15
10+
* @jbristow @zprobst @ccloes @angelosantos4 @rreddy2

nodestream_github/audit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def __init__(
3333
enterprise_name: str,
3434
actions: list[str] | None = None,
3535
lookback_period: dict[str, int] | None = None,
36-
**github_client_kwargs: dict[str, Any] | None,
36+
**github_client_kwargs: Any | None,
3737
):
3838
self.enterprise_name = enterprise_name
3939
self.client = GithubRestApiClient(**github_client_kwargs)

nodestream_github/client/githubclient.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def __init__(
8585
max_retries: int | None = None,
8686
rate_limit_per_minute: int | None = None,
8787
max_retry_wait_seconds: int | None = None,
88-
**_kwargs: dict[str, Any],
88+
**_kwargs: Any,
8989
):
9090
if per_page is None:
9191
per_page = DEFAULT_PAGE_SIZE

nodestream_github/orgs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def __init__(
2626
*,
2727
include_members: bool | None = True,
2828
include_repositories: bool | None = True,
29-
**kwargs: dict[str, Any],
29+
**kwargs: Any,
3030
):
3131

3232
self.include_members = include_members is True

nodestream_github/repos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class GithubReposExtractor(Extractor):
6464
def __init__(
6565
self,
6666
collecting: CollectWhichRepos | dict[str, Any] | None = None,
67-
**kwargs: dict[str, Any],
67+
**kwargs: Any,
6868
):
6969
if isinstance(collecting, CollectWhichRepos):
7070
self.collecting = collecting

nodestream_github/teams.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222

2323
class GithubTeamsExtractor(Extractor):
24-
def __init__(self, **github_client_kwargs: dict[str, Any]):
24+
def __init__(self, **github_client_kwargs: Any):
2525
self.client = GithubRestApiClient(**github_client_kwargs)
2626

2727
async def extract_records(self) -> AsyncGenerator[TeamRecord]:

nodestream_github/transformer/repo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __init__(
1818
self,
1919
*,
2020
full_name_key: str = "full_name",
21-
**kwargs: dict[str, Any],
21+
**kwargs: Any,
2222
):
2323
self.client = GithubRestApiClient(**kwargs)
2424
self.full_name_key = full_name_key

nodestream_github/types/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@
1919
from .httpx import HeaderTypes, PrimitiveData, QueryParamTypes
2020

2121
__all__ = [
22+
"GithubAuditLog",
2223
"GithubOrg",
2324
"GithubOrgSummary",
2425
"GithubRepo",
2526
"GithubTeam",
2627
"GithubTeamSummary",
27-
"GithubAuditLog",
2828
"GithubUser",
2929
"HeaderTypes",
3030
"JSONType",

nodestream_github/users.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121

2222
class GithubUserExtractor(Extractor):
23-
def __init__(self, **github_client_kwargs: dict[str, Any]):
23+
def __init__(self, **github_client_kwargs: Any):
2424
self.client = GithubRestApiClient(**github_client_kwargs)
2525

2626
async def extract_records(self) -> AsyncGenerator[UserRecord]:

pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,15 @@ addopts = "--cov-report=term --cov-report=xml --cov=nodestream_github --junit-xm
5454
[tool.ruff.lint]
5555
select = ["A", "ANN", "ARG", "ASYNC", "B", "C4", "DTZ", "E", "EM", "ERA", "F", "FBT", "FURB", "G", "I", "INP", "N", "PIE", "PT", "RET", "RUF", "S", "SIM", "T20", "TC", "UP", ]
5656
ignore = []
57-
5857
unfixable = ["B"]
59-
6058
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
59+
6160
[tool.ruff.lint.per-file-ignores]
6261
"tests/*" = ["S101", "S106"]
6362
"nodestream_github/logging/__init__.py" = ["A005"]
6463
"nodestream_github/types/__init__.py" = ["A005"]
64+
6565
[tool.ruff.lint.flake8-annotations]
6666
mypy-init-return = true
6767
suppress-none-returning = true
68+
allow-star-arg-any = true

0 commit comments

Comments
 (0)