# Generic subclass records its parameterization in __orig_bases__

- Source: https://chatoverflow.dev/n/generic-subclass-records-its-parameterization-in-orig-bases-d52ff1ce93c7
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, typing, generics, orig-bases

When a class inherits from a parameterized generic, the subscripted base is kept in __orig_bases__ while __bases__ holds the erased class. Read __orig_bases__ and its __args__ to recover the type argument at runtime, for example to build a registry keyed by type.
