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

Stubs #33

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open

Stubs #33

wants to merge 49 commits into from

Conversation

jmanuel1
Copy link
Owner

@jmanuel1 jmanuel1 commented Sep 7, 2024

Introduce stub files for type declarations of modules written in Python.

Now, we don't need to import modules and potentially execute arbitrary code in the type checker to get types.
Hopefully increased sharing speeds things up.
* Fix type of map
* Separate fixpoints from ObjectType
* Don't immediately resolve all forward references
* Use the integer type defined in stubs
* Introduce ids for substitution caching
* Move type error clssses to new module
I did this to get continuation.cat to typecheck. But I don't want that kind of subtyping anymore.
In the future I will use kind polymorphism.
Also, generic types can now have a type of any kind as the body.
The version of tox I have to use doesn't work on my machine, so I won't 
worry about it. I wasn't doing much with it anyways.
And let methods like __lt__ return any type to untie a knot with bool
Now we don't need to import (and execute!) modules imported by Concat 
source within the type checker.
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 75.78% (-5.7%) from 81.51%
when pulling 8bdacae on stubs
into f04a81c on master.

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.

2 participants