diff --git a/mypy.ini b/mypy.ini index dd52511..41fc9c2 100644 --- a/mypy.ini +++ b/mypy.ini @@ -13,7 +13,6 @@ strict_optional=True warn_no_return=True warn_redundant_casts=True warn_unused_ignores=True -disallow_any_generics=True check_untyped_defs=True files=src/webdav4,tests,setup.py disallow_untyped_defs=True diff --git a/src/webdav4/callback.py b/src/webdav4/callback.py index 7a22de8..b2d0fea 100644 --- a/src/webdav4/callback.py +++ b/src/webdav4/callback.py @@ -14,7 +14,7 @@ def do_nothing(_: int) -> Any: """A function that does nothing.""" -class CallbackIOWrapper(Iterable): # type: ignore[type-arg] +class CallbackIOWrapper(Iterable): """Wrap a file-like's read/write method to report length to callback.""" def __init__( diff --git a/src/webdav4/fsspec.py b/src/webdav4/fsspec.py index 4062338..1863951 100644 --- a/src/webdav4/fsspec.py +++ b/src/webdav4/fsspec.py @@ -389,7 +389,7 @@ def reopen(args: ReopenArgs) -> WebdavFile: # directly. -class UploadFile(tempfile.SpooledTemporaryFile[bytes]): +class UploadFile(tempfile.SpooledTemporaryFile): """UploadFile for Webdav, that uses SpooledTemporaryFile. In Webdav, you cannot upload in chunks. Similar to http, we need some kind