Skip to content

TYP: Type annotations overhaul, episode 2 #288

New issue

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

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

Already on GitHub? # to your account

Merged
merged 24 commits into from
Apr 17, 2025

Conversation

jorenham
Copy link
Contributor

@jorenham jorenham commented Mar 22, 2025

This is a WIP in progress, but feel free to say whatever you feel like saying about the stuff I've already touched at this point.


  • _internal
  • common/*
  • numpy
    • __init__
    • _aliases
    • _info
    • _typing
    • fft
    • linalg
  • torch.*
  • dask.array.* (except for .fft)

Because cupy has no py.typed, and is too dynamic for pyright to analyse, it's pretty much impossible to annotate cupy.* at the moment.

I decided to skip torch for now; this PR is big enough already.


relevant info about bool | int | float | complex:
#291 (comment)

@jorenham
Copy link
Contributor Author

I'm not really sure what's causing these test failures here 🤔

@crusaderky
Copy link
Contributor

I'm not really sure what's causing these test failures here 🤔

They're in main too

@jorenham jorenham force-pushed the typing-overhaul-episode-2 branch from 37b9c7b to a522dbc Compare April 15, 2025 12:10
@jorenham jorenham marked this pull request as ready for review April 15, 2025 15:32
@lucascolley
Copy link
Member

I'll try to take a cursory look at this before the meeting today

@lucascolley lucascolley self-requested a review April 17, 2025 10:33
Copy link
Member

@lucascolley lucascolley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks Joren, this looks great! I looked through the whole diff. Approval pending discussion of builtin subclasses in the community meeting. Some comments but nothing major

jorenham and others added 2 commits April 17, 2025 18:10
Co-authored-by: Lucas Colley <lucas.colley8@gmail.com>
Co-authored-by: lucascolley <lucas.colley8@gmail.com>
@lucascolley
Copy link
Member

all good from the community meeting 👍

@lucascolley lucascolley added this to the 1.12 milestone Apr 17, 2025
@lucascolley lucascolley merged commit 205c967 into data-apis:main Apr 17, 2025
23 checks passed
@jorenham jorenham deleted the typing-overhaul-episode-2 branch April 17, 2025 18:17
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants