no type ignore
This commit is contained in:
parent
1fa0fbeb16
commit
25f9f74e24
@ -811,7 +811,7 @@ def get_config(reload: bool = False) -> Config:
|
|||||||
sys.path.insert(0, os.getcwd())
|
sys.path.insert(0, os.getcwd())
|
||||||
# only import the module if it exists. If a module spec exists then
|
# only import the module if it exists. If a module spec exists then
|
||||||
# the module exists.
|
# the module exists.
|
||||||
spec = find_spec(constants.Config.MODULE) # type: ignore
|
spec = find_spec(constants.Config.MODULE)
|
||||||
cwd = Path(os.getcwd())
|
cwd = Path(os.getcwd())
|
||||||
if not spec or (
|
if not spec or (
|
||||||
spec.origin is not None and not Path(spec.origin).is_relative_to(cwd)
|
spec.origin is not None and not Path(spec.origin).is_relative_to(cwd)
|
||||||
|
Loading…
Reference in New Issue
Block a user