Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] Introduce get_type_parameters to access unspecified type parameters #17

Open
mtfishman opened this issue Dec 13, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mtfishman
Copy link
Member

For example:

get_type_parameters(Matrix) == (TypeVar(:T), 2) # This equality technically doesn't hold because `TypeVar(:T) ≠ TypeVar(:T)`
get_type_parameters(Matrix, 1) == TypeVar(:T) # This equality technically doesn't hold because `TypeVar(:T) ≠ TypeVar(:T)`
get_type_parameters(Matrix, 1, nothing) == nothing # Set a default value to use if unspecified

This would act as a public API for the private functionality TypeParameters.parameters, and serves as an uncheck version of type_parameters.

@mtfishman mtfishman added the enhancement New feature or request label Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant