Skip to content

fixup settings imports#19794

Merged
SaschaCowley merged 1 commit intobetafrom
settingsImports
Mar 17, 2026
Merged

fixup settings imports#19794
SaschaCowley merged 1 commit intobetafrom
settingsImports

Conversation

@seanbudd
Copy link
Copy Markdown
Member

This pull request refactors type annotations and import statements in source/gui/settingsDialogs.py to use modern Python type hinting syntax and improve import organization. The changes primarily involve replacing typing module type hints with built-in generic types, as well as reordering some import statements for clarity.

@seanbudd seanbudd added this to the 2026.1 milestone Mar 16, 2026
@seanbudd seanbudd requested a review from a team as a code owner March 16, 2026 07:16
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR modernizes type annotations in source/gui/settingsDialogs.py by replacing typing module generics (typing.Dict, typing.List, typing.Type) with built-in equivalents (dict, list, type), moves Callable import to collections.abc, alphabetizes import lists, and removes a redundant import math.

Changes:

  • Replace typing.Dict, typing.List, typing.Type with built-in dict, list, type
  • Alphabetize import lists from mathPres.MathCAT.preferences
  • Remove redundant import math and unused typing import

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@seanbudd seanbudd added the conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review. label Mar 17, 2026
@SaschaCowley SaschaCowley enabled auto-merge (squash) March 17, 2026 05:24
@SaschaCowley SaschaCowley merged commit 86f06b2 into beta Mar 17, 2026
90 of 95 checks passed
@SaschaCowley SaschaCowley deleted the settingsImports branch March 17, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

conceptApproved Similar 'triaged' for issues, PR accepted in theory, implementation needs review.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants