Skip to content

Commit

Permalink
Revert "chore: fix mypy errs"
Browse files Browse the repository at this point in the history
This reverts commit 8bd28f6.
  • Loading branch information
BobTheBuidler committed Feb 11, 2024
1 parent 8bd28f6 commit cb8e06e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion a_sync/_meta.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from typing import Any, Dict, Tuple

from a_sync import ENVIRONMENT_VARIABLES, _bound, modifiers
from a_sync.future import _ASyncFutureWrappedFn # type: ignore [attr-defined]
from a_sync.future import _ASyncFutureWrappedFn
from a_sync.modified import ASyncFunction, Modified
from a_sync.property import PropertyDescriptor

Expand Down
6 changes: 3 additions & 3 deletions a_sync/_typing.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@

import asyncio
from _collections_abc import dict_keys, dict_values, dict_items
from concurrent.futures._base import Executor
from decimal import Decimal
from typing import (TYPE_CHECKING, Any, AsyncIterable, AsyncIterator, Awaitable,
Callable, DefaultDict, Deque, Dict, Generator, Generic,
Iterable, Iterator, List, Literal, Optional, Protocol, Set,
Tuple, Type, TypedDict, TypeVar, Union, final, overload)
ItemsView, Iterable, Iterator, KeysView, List, Literal,
Optional, Protocol, Set, Tuple, Type, TypedDict, TypeVar,
Union, ValuesView, final, overload)

from typing_extensions import Concatenate, ParamSpec, Self, Unpack

Expand Down
2 changes: 1 addition & 1 deletion a_sync/abstract.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,5 +69,5 @@ def __a_sync_flag_value__(self) -> bool:
pass

@abc.abstractclassmethod # type: ignore [arg-type, misc]
def __a_sync_default_mode__(cls) -> bool: # type: ignore [empty-body]
def __a_sync_default_mode__(cls) -> bool:
pass
6 changes: 3 additions & 3 deletions a_sync/modifiers/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,11 @@ def sync_modifier_wrap(*args: P.args, **kwargs: P.kwargs) -> T:
return sync_modifier_wrap

# Dictionary api
def items(self) -> dict_items[str, Any]:
def items(self) -> ItemsView[str, Any]:
return self._modifiers.items()
def keys(self) -> dict_keys[str]:
def keys(self) -> KeysView[str]:
return self._modifiers.keys()
def values(self) -> dict_values[Any]:
def values(self) -> ValuesView[Any]:
return self._modifiers.values()
def __contains__(self, key: str) -> bool: # type: ignore [override]
return key in self._modifiers
Expand Down

0 comments on commit cb8e06e

Please sign in to comment.