You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I run the following code:
def load_config(path:str)->Dict:
"load required config file"
with open(path) as config_file:
data = json.load(config_file)
return data
Always show errors:
with open(path) as config_file:
TypeError: expected str, bytes or os.PathLike object, not NoneType
I searched for a long time, but I didn't find the answer. I would appreciate it if you could tell me why.
The text was updated successfully, but these errors were encountered:
When I run the following code:
def load_config(path:str)->Dict:
"load required config file"
with open(path) as config_file:
data = json.load(config_file)
return data
Always show errors:
with open(path) as config_file:
TypeError: expected str, bytes or os.PathLike object, not NoneType
I searched for a long time, but I didn't find the answer. I would appreciate it if you could tell me why.
The text was updated successfully, but these errors were encountered: