Repository navigation
Modernise code syntax - #237
Conversation
|
A new ticket that might be relevant to this conversation: #239 |
|
Just a note, I had to go back and run |
|
@FrancescoPezzella type checking fails on this MR, even after upgrading |
|
yes i found an issue, will fix edit: should be fixed, try running the tests again |
|
@FrancescoPezzella looks like it's still failing. That class is a little tough to make type-safe - I'd be ok with some judicious use of |
|
yeah ii have to look into it, i am not sure why it is failing yet |
ok you were right it was an issue with Mypy treating the modernised syntax for Type differently, i added a 1 line fix |
|
Looks like pipelines pass, good deal. Add an entry to the CHANGELOG. As presented, this MR changes the API by removing the Edit: I see why it was removed. I'll update the CHANGELOG. |
NOTE: Removes Handler from exports - this was a now unneeded TypeVar
f98ff6a to
848e0a7
Compare
What Is This?
Fixes #234
Applied two commands to modernise the codebase:
python src/rejuvenation/migration_type_recipes.py ../TestProjects/pyee --py 3.12 --report ../MDsImportantes/pyee-1.md --second-passfrom https://github.com/TNO/Renaissance.Pyruff check --select UP,F401 --fixWhy Is This?
It follows Python best standards.
Anything We Need To Know?
(Add any additional flavor that will help with review.)
Questions
No new functionality was added, so tests do not have to be changed. No AI was used.
DEVELOPMENT.md?CONTRIBUTORS.mdfile?