comment why we're redefining FilePath type

This commit is contained in:
Thomas Grainger 2021-03-22 18:40:17 +00:00 committed by GitHub
parent 7f1f4bf0a4
commit 17d71408fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,8 @@ if TYPE_CHECKING:
def __exit__(self, *args, **kwargs): # type: (object, object) -> Optional[bool]
pass
# FilePath is missing type annotations
# https://twistedmatrix.com/trac/ticket/10148
class FilePath(object):
def __init__(self, path): # type: (str) -> None
self.path = path