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 3633d40 commit efb589bCopy full SHA for efb589b
1 file changed
python/runfiles/runfiles.py
@@ -159,6 +159,11 @@ class Path(pathlib.Path):
159
using the associated `Runfiles` instance when converted to a string.
160
"""
161
162
+ # Mypy isn't smart enough to realize `self` in the methods
163
+ # refers to our Path class instead of pathlib.Path
164
+ _runfiles: Optional["Runfiles"]
165
+ _source_repo: Optional[str]
166
+
167
# For Python < 3.12 compatibility when subclassing Path directly
168
_flavour = getattr(type(pathlib.Path()), "_flavour", None)
169
0 commit comments