mark some missing annotations as intentional

This commit is contained in:
Jan Petykiewicz 2024-07-28 20:14:55 -07:00
commit c48b427c77
2 changed files with 4 additions and 4 deletions

View file

@ -12,7 +12,7 @@ class AutoSlots(ABCMeta):
classes, they can have empty `__slots__` and their attribute type annotations
can be used to generate a full `__slots__` for the concrete class.
"""
def __new__(cls, name, bases, dctn):
def __new__(cls, name, bases, dctn): # noqa: ANN001,ANN204
parents = set()
for base in bases:
parents |= set(base.mro())

View file

@ -11,7 +11,7 @@ def oneshot(func: Callable) -> Callable:
expired = False
@wraps(func)
def wrapper(*args, **kwargs):
def wrapper(*args, **kwargs): # noqa: ANN202
nonlocal expired
if expired:
raise OneShotError(func.__name__)