Skip to content

fix: modernize type annotations and make zip strictness explicit#100

Merged
alexsander-souza merged 1 commit intocanonical:resolute_supportfrom
alexsander-souza:pr-13/storage-infrastructure-bug-fixes
Apr 1, 2026
Merged

fix: modernize type annotations and make zip strictness explicit#100
alexsander-souza merged 1 commit intocanonical:resolute_supportfrom
alexsander-souza:pr-13/storage-infrastructure-bug-fixes

Conversation

@alexsander-souza
Copy link
Copy Markdown
Contributor

  • files.py: replace Optional[str]/Union[str, None] with str | None and drop the now-unused Optional and Union imports
  • config_forms.py: pass strict=False in DictCharField.compress() where the length mismatch is intentional (skip_check adds SKIP_CHECK_NAME to self.names but not to the data list); pass strict=True in DictCharWidget.init() where names and widgets must always align

…icit

- files.py: replace Optional[str]/Union[str, None] with str | None and
  drop the now-unused Optional and Union imports
- config_forms.py: pass strict=False in DictCharField.compress() where
  the length mismatch is intentional (skip_check adds SKIP_CHECK_NAME to
  self.names but not to the data list); pass strict=True in
  DictCharWidget.__init__() where names and widgets must always align
@alexsander-souza alexsander-souza changed the title fix(storage): modernize type annotations and make zip strictness explicit fix: modernize type annotations and make zip strictness explicit Apr 1, 2026
@alexsander-souza alexsander-souza merged commit 33d6ce9 into canonical:resolute_support Apr 1, 2026
1 of 2 checks passed
@alexsander-souza alexsander-souza deleted the pr-13/storage-infrastructure-bug-fixes branch April 1, 2026 21:32
alexsander-souza added a commit that referenced this pull request Apr 8, 2026
- files.py: replace Optional[str]/Union[str, None] with str | None and
drop the now-unused Optional and Union imports
- config_forms.py: pass strict=False in DictCharField.compress() where
the length mismatch is intentional (skip_check adds SKIP_CHECK_NAME to
self.names but not to the data list); pass strict=True in
DictCharWidget.__init__() where names and widgets must always align
alexsander-souza added a commit that referenced this pull request Apr 8, 2026
- files.py: replace Optional[str]/Union[str, None] with str | None and
drop the now-unused Optional and Union imports
- config_forms.py: pass strict=False in DictCharField.compress() where
the length mismatch is intentional (skip_check adds SKIP_CHECK_NAME to
self.names but not to the data list); pass strict=True in
DictCharWidget.__init__() where names and widgets must always align
alexsander-souza added a commit that referenced this pull request Apr 9, 2026
- files.py: replace Optional[str]/Union[str, None] with str | None and
drop the now-unused Optional and Union imports
- config_forms.py: pass strict=False in DictCharField.compress() where
the length mismatch is intentional (skip_check adds SKIP_CHECK_NAME to
self.names but not to the data list); pass strict=True in
DictCharWidget.__init__() where names and widgets must always align
alexsander-souza added a commit that referenced this pull request Apr 17, 2026
- files.py: replace Optional[str]/Union[str, None] with str | None and
drop the now-unused Optional and Union imports
- config_forms.py: pass strict=False in DictCharField.compress() where
the length mismatch is intentional (skip_check adds SKIP_CHECK_NAME to
self.names but not to the data list); pass strict=True in
DictCharWidget.__init__() where names and widgets must always align
alexsander-souza added a commit that referenced this pull request Apr 17, 2026
- files.py: replace Optional[str]/Union[str, None] with str | None and
drop the now-unused Optional and Union imports
- config_forms.py: pass strict=False in DictCharField.compress() where
the length mismatch is intentional (skip_check adds SKIP_CHECK_NAME to
self.names but not to the data list); pass strict=True in
DictCharWidget.__init__() where names and widgets must always align
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.

2 participants