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
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
This PR fixes several issues and adds a small demo script to showcase some of the features
Fixed issues include:
is_subtype(*, TypeVar)UnknownTypebehave like a top type when checking subtype relationship (allow assigning anything to an unknown variable)TypeVardefinitions and usage in functions