Skip to content

Update typing for Python 3.10 and enhance configuration#476

Open
hunterhogan wants to merge 1 commit intobastibe:masterfrom
hunterhogan:typing
Open

Update typing for Python 3.10 and enhance configuration#476
hunterhogan wants to merge 1 commit intobastibe:masterfrom
hunterhogan:typing

Conversation

@hunterhogan
Copy link

Upgrade the project to Python 3.10, add necessary typing rules, and improve the configuration by including default excludes to optimize file analysis. Overload definitions in soundfile.py focus on always_2d.

Based on https://github.com/hunterhogan/stubFileNotFound/blob/25b460289cb3fd331e1a8872af11ee8a1c3fa19a/stubs/soundfile.pyi

pyrightconfig.json
"The exclude list is missing default excludes such as '**/.*'. Consider adding them to avoid analyzing unnecessary files."
- added `"**/.*"`.

Python 3.9 is EOL.
- change to `"pythonVersion": "3.10"`.

- Add rules

soundfile.py
- ran `pyupgrade --py310-plus soundfile.py`

- added overload
The overload definitions only focus on `always_2d`.
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.

1 participant