Fixes and small demo #19

Merged
HEL merged 14 commits from feat/demonstration into main 2026-06-23 08:15:56 +00:00
Owner

This PR fixes several issues and adds a small demo script to showcase some of the features

Fixed issues include:

  • get class bases from constraint type's inner type and type variable bound when generating stubs
  • lookup members on type variable bound
  • don't generate stubs for builtin types
  • add general subtype check for applied type, comparing bodies (needs to be checked and validated to ensure the rule's legitimacy)
  • produce judgements for cast inner expression
  • lookup members on constraint type's inner type
  • generate assertion on type variable bound
  • handle case for is_subtype(*, TypeVar)
  • make UnknownType behave like a top type when checking subtype relationship (allow assigning anything to an unknown variable)
  • handle Python TypeVar definitions and usage in functions
This PR fixes several issues and adds a small demo script to showcase some of the features Fixed issues include: - get class bases from constraint type's inner type and type variable bound when generating stubs - lookup members on type variable bound - don't generate stubs for builtin types - add general subtype check for applied type, comparing bodies (needs to be checked and validated to ensure the rule's legitimacy) - produce judgements for cast inner expression - lookup members on constraint type's inner type - generate assertion on type variable bound - handle case for `is_subtype(*, TypeVar)` - make `UnknownType` behave like a top type when checking subtype relationship (allow assigning anything to an unknown variable) - handle Python `TypeVar` definitions and usage in functions
HEL self-assigned this 2026-06-23 08:15:49 +00:00
HEL added 14 commits 2026-06-23 08:15:49 +00:00
HEL merged commit 9c7a93412c into main 2026-06-23 08:15:56 +00:00
HEL deleted branch feat/demonstration 2026-06-23 08:15:56 +00:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: HEL/midas#19