Skip to content

Add type hints#265

Closed
tlaferriere wants to merge 2 commits intopython-semver:masterfrom
tlaferriere:213-type-hint
Closed

Add type hints#265
tlaferriere wants to merge 2 commits intopython-semver:masterfrom
tlaferriere:213-type-hint

Conversation

@tlaferriere
Copy link
Contributor

This adds type hints to every function not deprecated. Should fix #213 .

I've had to refactor some of the code to get mypy to stop complaining on python 3.8. It isn't configured in Tox yet because I am waiting on #247 to be merged to avoid conflicts.

@tlaferriere tlaferriere marked this pull request as draft June 11, 2020 04:22
@tlaferriere tlaferriere changed the title WIP: Add type hints Add type hints Jun 11, 2020
@tomschr
Copy link
Member

tomschr commented Oct 21, 2020

@tlaferriere Thanks Thomas for investigating that. As I did lots of changes lately with the upcoming 3.0.0-alpha0, I'd suggest to add your work into one of the next alphas or betas.

I think, your work and effort should be preserved. 👍 We only need to make sure we fix all the conflicts. 😉

@tlaferriere
Copy link
Contributor Author

Is there a branch for 3.x development I can merge this in?

@tomschr
Copy link
Member

tomschr commented Oct 21, 2020

You could use the feature/3.0.0-alpha0 branch. However, maybe we should try this with alpha1 to make the changes a bit more manageable. Would that be an option for you?

@tlaferriere
Copy link
Contributor Author

Alright I'll point a pr to the Alpha 0 branch so I can start fixing the conflicts.

@tomschr
Copy link
Member

tomschr commented Oct 21, 2020

That would be awesome! ❤️ Thanks and sorry for all the conflicts.

@tlaferriere
Copy link
Contributor Author

Closing in favor of tomschr#6

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.

Consider type hints for 3.x.y release?

2 participants