A recent PR in typeshed has exposed a bug in pyright's handling of circular dependencies between classes. See this thread for details.
The ReprEnum class derives from Enum which uses the metaclass EnumMeta. The EnumMeta has a __new__ method that describes a keyword parameter boundary of type FlagBoundary. This type derives from StrEnum which derives from ReprEnum, and we're back to the start.
A recent PR in typeshed has exposed a bug in pyright's handling of circular dependencies between classes. See this thread for details.
The
ReprEnumclass derives fromEnumwhich uses the metaclassEnumMeta. TheEnumMetahas a__new__method that describes a keyword parameterboundaryof typeFlagBoundary. This type derives fromStrEnumwhich derives fromReprEnum, and we're back to the start.