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
There is some backwards compatibility issues with versions of python prior to 3.10; namely with the typing. Use of the | operator in lines like: def read_json_file(file_path: str | TextIO, encoding: str = "utf-8") -> dict:
doesn't work, in this case you need something like: def read_json_file(file_path: Union[str, TextIO], encoding: str = "utf-8") -> dict:
Could either specify older versions aren't supported, or make edits to support them with the Union operator
The text was updated successfully, but these errors were encountered:
There is some backwards compatibility issues with versions of python prior to 3.10; namely with the typing. Use of the | operator in lines like:
def read_json_file(file_path: str | TextIO, encoding: str = "utf-8") -> dict:
doesn't work, in this case you need something like:
def read_json_file(file_path: Union[str, TextIO], encoding: str = "utf-8") -> dict:
Could either specify older versions aren't supported, or make edits to support them with the Union operator
The text was updated successfully, but these errors were encountered: