black typing

This commit is contained in:
Will McGugan 2021-03-22 20:32:23 +00:00
parent 84b6f751e0
commit 27379a8f1a
4 changed files with 4 additions and 3 deletions

View File

@ -4,6 +4,7 @@ import sys
from array import array
from collections import Counter, defaultdict, deque
from dataclasses import dataclass, fields, is_dataclass
import inspect
from itertools import islice
from typing import (
TYPE_CHECKING,

View File

@ -24,6 +24,6 @@ def rich_repr(cls: Type[T]) -> Type[T]:
return f"{self.__class__.__name__}({', '.join(repr_str)})"
auto_repr.__doc__ = "Return repr(self)"
cls.__repr__ = auto_repr
cls.__repr__ = auto_repr # type: ignore
return cls

File diff suppressed because one or more lines are too long