from enum import Enum, unique
from functools import lru_cache
from typing import (Sequence, AbstractSet, Iterable, Mapping,
- TYPE_CHECKING, Sequence, TypeVar)
+ TYPE_CHECKING, Sequence, TypeVar, Generic)
from nmutil.plain_data import plain_data
if TYPE_CHECKING:
from typing_extensions import final, Self
- from typing import Generic
else:
def final(v):
return v
- # make plain_data work with Generics
- class Generic:
- def __class_getitem__(cls, item):
- return object
-
@plain_data(frozen=True, unsafe_hash=True)
class PhysLoc(metaclass=ABCMeta):