Skip to content

Conversation

@abates20
Copy link

  • Resolves [Feature] Improved type hinting for DictList #1464
  • Improves type hinting for the DictList class by adding a TypeVar. This allows the specific type of object contained within an instantiated DictList to be defined. For example, the type for model.reactions is now DictList[Reaction] instead of just DictList. This means that now the hinted return type for model.reactions.get_by_id is Reaction instead of Object.
  • No tests added since only type hinting was changed.
  • add an entry to the next release

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature] Improved type hinting for DictList

1 participant