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

Use type hints to resolve method calls within a scope #21

Open
BPHarris opened this issue Mar 23, 2022 · 0 comments
Open

Use type hints to resolve method calls within a scope #21

BPHarris opened this issue Mar 23, 2022 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@BPHarris
Copy link
Collaborator

Ratter currently supports class initialisers and static methods, however, it does not support standard methods as the type of the method owner is unknown.

While static typing is out-of-scope, within a fixed scope (function, etc) Ratter could take type hints as always true and resolve the method called that way. Though this does introduce potential issues when the type hints are incorrect -- either producing the wrong results with no warning or attempting to resolve a non-existent method.

Furthermore, as a part of the MR, there should be the ability to resolve self types.

@BPHarris BPHarris self-assigned this Mar 23, 2022
@BPHarris BPHarris added the enhancement New feature or request label Mar 23, 2022
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