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

fix(type hints): various improvements to type hints #6862

Closed
wants to merge 8 commits into from

Conversation

binste
Copy link
Contributor

@binste binste commented Aug 13, 2023

Related to the discussion in #6844. See the individual commits for the details but let me know if something is unclear. In 1b8d1f1 I added type hints to all attributes which are defined in __slots__ as mypy struggled to infer it for some classes and reported that the class does not have a certain attribute.

Running mypy ibis --ignore-missing-imports on master:

Found 126 errors in 37 files (checked 558 source files)

With this PR:

Found 114 errors in 31 files (checked 558 source files)

@kszucs
Copy link
Member

kszucs commented Aug 14, 2023

@binste could we partition the typehint changes per package? Like we could start typehinting ibis.common first since the rest of the library depends on it, and it would be easier to review and discuss by focusing to a single subpackage.

@binste
Copy link
Contributor Author

binste commented Aug 14, 2023

Sounds good! See #6867

@jcrist
Copy link
Member

jcrist commented Aug 15, 2023

Since we're splitting the work out into smaller PRs, should we close this one for now?

@binste
Copy link
Contributor Author

binste commented Aug 17, 2023

Sure sounds good! I'll let you close it.

@jcrist jcrist closed this Aug 17, 2023
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.

3 participants