Skip to content

Annotate more straightforward APIs in the stubs - #1271

Open
jonathanberthias wants to merge 24 commits into
scipopt:masterfrom
jonathanberthias:typing/stub-annotations
Open

jonathanberthias wants to merge 24 commits into
scipopt:masterfrom
jonathanberthias:typing/stub-annotations

Conversation

@jonathanberthias

Copy link
Copy Markdown
Contributor

Quite a few methods and attributes still use Incomplete, even where the implementation makes their types fairly clear.

Following #1220, this is another batch of straightforward annotations: mostly getters, Model and LP methods, file paths, and matrix results. I also filled in concrete default values where possible.

Deprecated APIs now use @deprecated, and mypy checks for deprecated usage and unused ignores.

The commits are split by topic, so reviewing them individually might be easier.

Part of #1072

Comment thread src/pyscipopt/recipes/infeasibilities.py
Comment thread src/pyscipopt/scip.pyi
@Joao-Dionisio

Copy link
Copy Markdown
Member

Awesome work @jonathanberthias , thank you! I went through the changes (both myself and with an agent), and all seem to correct!

The stub test doesn't detect that new incomplete stubs are added, correct? Could we change this in a follow up PR?

This branch has not been deployed

No deployments
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