We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c922ce commit 85ec0a7Copy full SHA for 85ec0a7
mypy/fscache.py
@@ -117,9 +117,9 @@ def init_under_package_root(self, path: str) -> bool:
117
if not stat.S_ISDIR(st.st_mode):
118
return False
119
ok = False
120
- drive, path = os.path.splitdrive(path) # Ignore Windows drive name
121
if os.path.isabs(path):
122
path = os.path.relpath(path)
+ drive, path = os.path.splitdrive(path) # Ignore Windows drive name
123
path = os.path.normpath(path)
124
for root in self.package_root:
125
if path.startswith(root):
0 commit comments