Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some questions about the code. #2

Open
mssunnys opened this issue Jul 16, 2022 · 0 comments
Open

Some questions about the code. #2

mssunnys opened this issue Jul 16, 2022 · 0 comments

Comments

@mssunnys
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant