Skip to content

Reformat python code#905

Merged
motus merged 89 commits into
microsoft:mainfrom
bpkroth:reformat-python-code
Jan 3, 2025
Merged

Reformat python code#905
motus merged 89 commits into
microsoft:mainfrom
bpkroth:reformat-python-code

Conversation

@bpkroth

@bpkroth bpkroth commented Jan 2, 2025

Copy link
Copy Markdown
Contributor

Pull Request

Title

Updates most of the python code for updated syntax after #904


Description

  • Reformats the code in bulks with pyupgrade
  • Apply some additional autoflake and isort fixes for the no longer necessary imports.
  • Fixup a few places that need to use __futures__ import annotations for forward references in type hints (and run pyupgrade again to remove the previous quoted string versions).
  • Adjusts a few docstrings, but not all of the Optional and Union ones (due to difficulties with regex and matching braces).
  • Closes Consider dropping support for python 3.8 and/or 3.9 #749

Type of Change

  • 🔄 Refactor

Testing

Usual CI


Additional Notes (optional)

Should be merged after #904


@motus motus enabled auto-merge (squash) January 3, 2025 23:11
@motus motus merged commit 795d1b0 into microsoft:main Jan 3, 2025
bpkroth added a commit that referenced this pull request Jan 6, 2025
Ignores the latest reformat revision from #905 from `git blame`

Co-authored-by: Sergiy Matusevych <sergiym@microsoft.com>
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 dropping support for python 3.8 and/or 3.9

2 participants