Skip to content

Commit

Permalink
mypy: allow generics
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Jun 3, 2021
1 parent 4d982a1 commit 4c780c9
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/webdav4/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__(
Expand Down
2 changes: 1 addition & 1 deletion src/webdav4/fsspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c780c9

Please sign in to comment.