@@ -728,7 +728,7 @@ class Judge0Cloud(Client):
728
728
Additional keyword arguments for the base Client.
729
729
"""
730
730
731
- def __init__ (self , endpoint , auth_headers , ** kwargs ):
731
+ def __init__ (self , endpoint , auth_headers = None , ** kwargs ):
732
732
if isinstance (auth_headers , str ):
733
733
from json import loads
734
734
@@ -758,7 +758,7 @@ class Judge0CloudCE(Judge0Cloud):
758
758
HOME_URL : ClassVar [str ] = "https://ce.judge0.com"
759
759
API_KEY_ENV : ClassVar [str ] = "JUDGE0_CLOUD_CE_AUTH_HEADERS"
760
760
761
- def __init__ (self , auth_headers , ** kwargs ):
761
+ def __init__ (self , auth_headers = None , ** kwargs ):
762
762
super ().__init__ (
763
763
self .DEFAULT_ENDPOINT ,
764
764
auth_headers ,
@@ -783,7 +783,7 @@ class Judge0CloudExtraCE(Judge0Cloud):
783
783
HOME_URL : ClassVar [str ] = "https://extra-ce.judge0.com"
784
784
API_KEY_ENV : ClassVar [str ] = "JUDGE0_CLOUD_EXTRA_CE_AUTH_HEADERS"
785
785
786
- def __init__ (self , auth_headers , ** kwargs ):
786
+ def __init__ (self , auth_headers = None , ** kwargs ):
787
787
super ().__init__ (self .DEFAULT_ENDPOINT , auth_headers , ** kwargs )
788
788
789
789
0 commit comments