Skip to content

Commit 6be1f48

Browse files
committed
fix: None error when pseudo-creating team objects in dry-run
1 parent 125928c commit 6be1f48

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

gh_org_mgr/_gh_org.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
from github.NamedUser import NamedUser
2020
from github.Organization import Organization
2121
from github.Repository import Repository
22+
from github.Requester import Requester
2223
from github.Team import Team
2324
from jwt.exceptions import InvalidKeyError
2425

@@ -763,7 +764,16 @@ def _create_perms_changelist_for_teams(
763764
)
764765
# Initialise a new Team() object with the name, manually
765766
team = Team(
766-
requester=None, # type: ignore
767+
requester=Requester(
768+
auth=None,
769+
base_url="https://api.github.com",
770+
timeout=10,
771+
user_agent="",
772+
per_page=100,
773+
verify=True,
774+
retry=3,
775+
pool_size=200,
776+
),
767777
headers={}, # No headers required
768778
attributes={
769779
"id": 0,

0 commit comments

Comments
 (0)