Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Add types to refs #1295

Merged
merged 22 commits into from Jul 19, 2021
Merged

Add types to refs #1295

merged 22 commits into from Jul 19, 2021

Conversation

Yobmod
Copy link
Contributor

@Yobmod Yobmod commented Jul 19, 2021

Adding types to refs module, and backtracking to make sure they agree with previous types.

I also changed the hard-coding of Traversable.list_traverse(on_edge= True) that I put in last time to be a check for it in kwargs. At the moment all it does is raise an additional deprecation warning if anyone tried to use on_edge= True - I don't think anyone would be, but better than breaking it without warning.
Also made Traversable, Serilizable and IterableObj into Protocols (typings version of abstract base classes) - shouldnt have any effect on users unless they are doing something wierd.

Added flake8-bugbear and flake8-comprehensions and fixed the (minor) complaints they had.

Removed some checks for python 3.5 in tests.

@Byron Byron merged commit cfd653a into gitpython-developers:main Jul 19, 2021
5 checks passed
@Byron
Copy link
Member

@Byron Byron commented Jul 19, 2021

Tremendous work, thank you!

@Byron Byron added this to the v3.1.19 - Bugfixes milestone Jul 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants