Skip to content

refactor: modernise typing to Python 3.11 native syntax (21 files)#210

Open
gmmcosta15 wants to merge 2 commits intodevfrom
refactor/typing-py311
Open

refactor: modernise typing to Python 3.11 native syntax (21 files)#210
gmmcosta15 wants to merge 2 commits intodevfrom
refactor/typing-py311

Conversation

@gmmcosta15
Copy link
Copy Markdown
Collaborator

  • Feature
  • Bug fix
  • Code refactor
  • Documentation

Description

  • Replace Optional[X], Union[X, Y], List[X], Dict[K, V] with native Python 3.11 syntax (X | None, X | Y, list[X], dict[K, V]) across 21 files.
  • Add from __future__ import annotations where needed.
  • Fix filament.py: _spool_type initialized in __init__, brand setter return type set to None.
  • Fix files.py: remove duplicate ReceivedFileData import, use events.ReceivedFileData.
  • Update test_network_ui.py to match updated type signatures.

Motivation

Python 3.11 supports native generic syntax. Using Optional/Union/List/Dict from typing is deprecated. This is a mechanical, zero-behaviour-change refactor across 21 files to modernise the codebase consistently.

@gmmcosta15 gmmcosta15 requested a review from HugoCLSC April 13, 2026 17:04
@gmmcosta15 gmmcosta15 self-assigned this Apr 13, 2026
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