@@ -728,7 +728,7 @@ class Judge0Cloud(Client):
728728 Additional keyword arguments for the base Client.
729729 """
730730
731- def __init__ (self , endpoint , auth_headers , ** kwargs ):
731+ def __init__ (self , endpoint , auth_headers = None , ** kwargs ):
732732 if isinstance (auth_headers , str ):
733733 from json import loads
734734
@@ -758,7 +758,7 @@ class Judge0CloudCE(Judge0Cloud):
758758 HOME_URL : ClassVar [str ] = "https://ce.judge0.com"
759759 API_KEY_ENV : ClassVar [str ] = "JUDGE0_CLOUD_CE_AUTH_HEADERS"
760760
761- def __init__ (self , auth_headers , ** kwargs ):
761+ def __init__ (self , auth_headers = None , ** kwargs ):
762762 super ().__init__ (
763763 self .DEFAULT_ENDPOINT ,
764764 auth_headers ,
@@ -783,7 +783,7 @@ class Judge0CloudExtraCE(Judge0Cloud):
783783 HOME_URL : ClassVar [str ] = "https://extra-ce.judge0.com"
784784 API_KEY_ENV : ClassVar [str ] = "JUDGE0_CLOUD_EXTRA_CE_AUTH_HEADERS"
785785
786- def __init__ (self , auth_headers , ** kwargs ):
786+ def __init__ (self , auth_headers = None , ** kwargs ):
787787 super ().__init__ (self .DEFAULT_ENDPOINT , auth_headers , ** kwargs )
788788
789789
0 commit comments