Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Clean up some typing syntax #247

Merged
merged 9 commits into from
Nov 26, 2023
Merged

Clean up some typing syntax #247

merged 9 commits into from
Nov 26, 2023

Conversation

Sachaa-Thanasius
Copy link
Member

Ideally, this doesn't result in any change to the functionality; it's more about making the typing syntax consistent with python 3.10+ and ensuring pyright flags it accordingly if it isn't.

- Using ruff and stricter pyright settings. Will have to remove later.
- Leave two extra pyright settings on — they can't hurt, right?
Copy link
Contributor

@AbstractUmbra AbstractUmbra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know this is still in draft but some things to note so far.

- Not as sure on the relative import change. In my opinion, this is a clearer indicator of where the imports are coming from, is more consistent with similar imports in other files, and doesn't run the risk of messing with an import of builtin types module, unlikely as that is to happen. Might be a matter of style though.
@Sachaa-Thanasius
Copy link
Member Author

Maybe more could be done, but this feels like it could be enough for a PR that doesn't add functionality.

@Sachaa-Thanasius Sachaa-Thanasius marked this pull request as ready for review November 10, 2023 00:47
Copy link
Contributor

@AbstractUmbra AbstractUmbra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, waiting for @EvieePy for final review.

@EvieePy
Copy link
Member

EvieePy commented Nov 21, 2023

Has this been tested in terms of actually being able to be ran? With like simple.py or something?

@Sachaa-Thanasius
Copy link
Member Author

Has this been tested in terms of actually being able to be ran? With like simple.py or something?

Yep. It works fine with simple.py on my machine, though I didn't run it exhaustively — I loaded up "Ocean Drive" and a "Rock Classics" Spotify playlist (courtesy of the examples in the migrating docs) and just let it go for a while.

@EvieePy EvieePy merged commit 94ea73e into PythonistaGuild:feature/v3 Nov 26, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants