Skip to content

some simplifications suggested by ruff - #59

Merged
NathanDunfield merged 2 commits into
3-manifolds:masterfrom
fchapoton:ruff_for_RET
Aug 16, 2026
Merged

some simplifications suggested by ruff#59
NathanDunfield merged 2 commits into
3-manifolds:masterfrom
fchapoton:ruff_for_RET

Conversation

@fchapoton

Copy link
Copy Markdown
Contributor

using the code RET, so mainly about the return in methods and functions

@culler

culler commented Jun 2, 2025

Copy link
Copy Markdown
Member

Are the suggested type hints supported by all versions of Python that we support?

@fchapoton

Copy link
Copy Markdown
Contributor Author

ah, good question indeed. What is the oldest python you support ?

@fchapoton

Copy link
Copy Markdown
Contributor Author

I have undone the "-> list" annotation, that indeed requires a somewhat recent python. Some "-> bool" annotations were already present in the code, so I kept the new ones.

@fchapoton

Copy link
Copy Markdown
Contributor Author

the annotation "-> bool" is accepted since at least python 3.5

@fchapoton

Copy link
Copy Markdown
Contributor Author

@culler This should be good to go now.

@fchapoton

Copy link
Copy Markdown
Contributor Author

ping ?

@fchapoton

Copy link
Copy Markdown
Contributor Author

@NathanDunfield : I am a bit sad to see my pull requests being neglected. I am just trying to help a little bit by doing basic house-cleaning.

@fchapoton

Copy link
Copy Markdown
Contributor Author

I have just resolved the conflicts and double-checked all my changes. 🏜️

@NathanDunfield
NathanDunfield merged commit ea6da8a into 3-manifolds:master Aug 16, 2026
20 of 21 checks passed
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