GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — refactor: modernise typing to Python 3.11 native syntax (21 files) by gmmcosta15 · Pull Request #210 · BlocksTechnology/BlocksScreen

Conversation

@gmmcosta15

@gmmcosta15 gmmcosta15 commented Apr 13, 2026

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.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gmmcosta15
refactor: modernise typing to Python 3.11 native syntax (21 files)
a31283a
@gmmcosta15
gmmcosta15 requested a review from HugoCLSC April 13, 2026 17:04
@gmmcosta15 gmmcosta15 self-assigned this Apr 13, 2026
@gmmcosta15
revert: test_network_ui belongs with networkWindow changes
ec206ca
@gmmcosta15 gmmcosta15 mentioned this pull request Apr 13, 2026
bugfix: resolve 40+ crashes, threading races, and Klipper protocol issues #200
Closed
1 of 4 tasks
@gmmcosta15
Fix a flaky test in TestVisibility::test_auto_show_states_call_show.
11339aa
  - Reset _state to DISCONNECTED and _firmware_restarting_pending to False before each iteration in the auto-show states loop.Merge remote-tracking branch 'origin/dev' into refactor/typing-py311
@gmmcosta15
gmmcosta15 force-pushed the refactor/typing-py311 branch from 6540e5e to 11339aa Compare June 16, 2026 12:56
gmmcosta15 added 3 commits June 19, 2026 10:57
@gmmcosta15
Merge branch 'dev' into refactor/typing-py311
76ed2a2
@gmmcosta15
Merge branch 'dev' into refactor/typing-py311
328699e
@gmmcosta15
Merge remote-tracking branch 'origin/dev' into refactor/typing-py311
118d88e
@gmmcosta15 gmmcosta15 mentioned this pull request Sep 23, 2026
refactor: separated control stacked widget into pages #299
Merged
1 task done
gmmcosta15 added 2 commits September 23, 2026 11:54
@gmmcosta15
Merge remote-tracking branch 'origin/dev' into refactor/typing-py311
712e1f2
@gmmcosta15
refactor(typing): finish py311 upgrade and fix renamed filament senso…
8e64037
…r slot crash
gmmcosta15 added a commit that referenced this pull request Sep 23, 2026
@gmmcosta15
fix(ui): drop dead confirm/cancel page code and leave sensor state re…
02eff12
…name to #210
@gmmcosta15
Merge branch 'dev' into refactor/typing-py311
6724d50
Signed-off-by: Guilherme Costa <[email protected]>
@gmmcosta15
gmmcosta15 merged commit d948529 into dev Sep 24, 2026
8 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@gmmcosta15
gmmcosta15 deleted the refactor/typing-py311 branch September 24, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@HugoCLSC HugoCLSC Awaiting requested review from HugoCLSC

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gmmcosta15 gmmcosta15

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@gmmcosta15
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.