Skip to content

v1.2.2

Latest

Choose a tag to compare

@curegit curegit released this 20 Jul 07:45

Bug fixes

  • Fixed inconsistent targ values between single type argument forms such as ReifiedClass[int] and ReifiedClass[int,].
  • Stabilized cached targ and type_args metadata. Later subscriptions with equivalent type arguments no longer overwrite the initially cached values.
  • Fixed unparameterized generic subclasses incorrectly inheriting type arguments from a specialized base class.
  • Added explicit validation and a clear TypeError for unhashable type arguments.

Documentation

  • Documented the hashability requirement for type arguments, including Annotated metadata.
  • Clarified the behavior of unparameterized generic subclasses.
  • Documented the current limitation that type arguments are not propagated through generic inheritance.