@@ -22,7 +22,7 @@ class Repository(GitHubCore):
22
22
sends information about repositories.
23
23
"""
24
24
25
- def __init__ (self , repo , session ):
25
+ def __init__ (self , repo , session = None ):
26
26
super (Repository , self ).__init__ (session )
27
27
self ._update_ (repo )
28
28
@@ -1249,7 +1249,7 @@ class Branch(GitHubCore):
1249
1249
"""The :class:`Branch <Branch>` object. It holds the information GitHub
1250
1250
returns about a branch on a :class:`Repository <Repository>`.
1251
1251
"""
1252
- def __init__ (self , branch , session ):
1252
+ def __init__ (self , branch , session = None ):
1253
1253
super (Branch , self ).__init__ (session )
1254
1254
self ._name = branch .get ('name' )
1255
1255
self ._commit = None
@@ -1367,7 +1367,7 @@ class Download(GitHubCore):
1367
1367
information about files uploaded to the downloads section of a repository.
1368
1368
"""
1369
1369
1370
- def __init__ (self , download , session ):
1370
+ def __init__ (self , download , session = None ):
1371
1371
super (Download , self ).__init__ (session )
1372
1372
self ._api = download .get ('url' )
1373
1373
self ._html = download .get ('html_url' )
@@ -1439,7 +1439,7 @@ class Hook(GitHubCore):
1439
1439
"""The :class:`Hook <Hook>` object. This handles the information returned
1440
1440
by GitHub about hooks set on a repository."""
1441
1441
1442
- def __init__ (self , hook , session ):
1442
+ def __init__ (self , hook , session = None ):
1443
1443
super (Hook , self ).__init__ (session )
1444
1444
self ._update_ (hook )
1445
1445
@@ -1589,7 +1589,7 @@ class RepoComment(BaseComment):
1589
1589
information about a comment on a file in a repository.
1590
1590
"""
1591
1591
1592
- def __init__ (self , comment , session ):
1592
+ def __init__ (self , comment , session = None ):
1593
1593
super (RepoComment , self ).__init__ (comment , session )
1594
1594
self ._update_ (comment )
1595
1595
@@ -1674,7 +1674,7 @@ class RepoCommit(BaseCommit):
1674
1674
returned from the git data section.
1675
1675
"""
1676
1676
1677
- def __init__ (self , commit , session ):
1677
+ def __init__ (self , commit , session = None ):
1678
1678
super (RepoCommit , self ).__init__ (commit , session )
1679
1679
self ._author = User (commit .get ('author' ), self ._session )
1680
1680
self ._committer = User (commit .get ('committer' ), self ._session )
0 commit comments