accelerating typing efforts #1006
Replies: 3 comments
-
|
If it gives us any comfort, it wasn't until March of this year that Pandas became type complete. For this reason, I think it's ok if this gets completed after 1.0, as it certainly was for Pandas. https://pyrefly.org/blog/pandas-type-completeness/ Interestingly, Ruff was part of the process. We've been mentioning linters more and more these days, so I think we'll need one soon. |
Beta Was this translation helpful? Give feedback.
-
|
using monkeytype wouldn't be a bad idea. i think the community really came together for the api docstring work. if one person used monkeytype on the whole repo, but then commit each .py to a separate branch. we can then crowd source the reviewing and editing. i mean, maybe it won't be as perfect as you going through it yourself over the course of a couple of months, but we'd get there a lot faster. |
Beta Was this translation helpful? Give feedback.
-
|
I have a pretty good vision on what I'd like out of For now we can take a sledgehammer approach to prioritize coverage, just making sure the number goes up when you run |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Copilot gave this suggestion:
✅ Recommended workflow (tailored to you)
Given:
high test coverage ✅
strong engineering discipline ✅
care about API/docs quality ✅
Step 1 — Bootstrap with runtime inference
Step 2 — Immediately run a strict type checker
This step:
forces consistency across call graph
reveals incorrect runtime-derived hints
Step 3 — Manually fix interfaces, not implementations
Focus your effort on:
public APIs
class boundaries
key data structures
Typical upgrades:
Step 4 — Use static inference to fill gaps
Run:
pytype .This helps:
discover untested paths
suggest missing annotations
(pytype can even emit .pyi files you can merge back)
Beta Was this translation helpful? Give feedback.
All reactions