Skip to content

Add type annotations to global storage dictionary#3548

Merged
Torxed merged 1 commit intoarchlinux:masterfrom
correctmost:cm/type-storage-dict
May 30, 2025
Merged

Add type annotations to global storage dictionary#3548
Torxed merged 1 commit intoarchlinux:masterfrom
correctmost:cm/type-storage-dict

Conversation

@correctmost
Copy link
Contributor

PR Description:

This will help catch issues like #3530.

Tests and Checks

  • I have tested the code!

@correctmost correctmost requested a review from Torxed as a code owner May 29, 2025 23:56
self.post_base_install: list[Callable] = [] # type: ignore[type-arg]

# TODO: Figure out which one of these two we'll use.. But currently we're mixing them..
storage['session'] = self
Copy link
Member

Choose a reason for hiding this comment

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

This might be a breaking change for those scripting their own installations (not everyone uses guided.py or what's referenced in this repo.

This is mainly a note to self so I don't forget to mention that in the release notes.
We should perhaps have gone out with a breaking change notification in the previous release, but it's an easy sed -i "s/storage['session']/storage['installation_session']/g' <file> wherever it's used.

@Torxed Torxed merged commit c2ea6ff into archlinux:master May 30, 2025
9 checks passed
@correctmost correctmost deleted the cm/type-storage-dict branch May 30, 2025 07:19
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.

3 participants