You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Secret is unnecessarily invariant, can be made covariant #12007
Currently that last line does not type check, because the invariance prevents to accept e.g. a Secret[str] where a Secret[str | ...] is expected. Note that this restriction is unnecessary: Secret is an immutable type, both practically and conceptually. It's a typical covariant use case and there is no need to enforce invariance. The type can be made covariant similarly to how e.g. Sequence or Mapping are covariant thanks to immutability.
Activity