Use Path instead of str if possible
This commit is contained in:
1 parent
b6fd81f1e1
commit
837cb1106a
2 files changed
+2
-3
No files matched your search
@@ -181,8 +181,6 @@ class InferenceState:
|
||||
|
||||
def parse_and_get_code(self, code=None, path=None,
|
||||
use_latest_grammar=False, file_io=None, **kwargs):
|
||||
if path is not None:
|
||||
path = str(path)
|
||||
if code is None:
|
||||
if file_io is None:
|
||||
file_io = FileIO(path)
|
||||
|
||||
Reference in new issue
Block a user