Skip to content

Fix an invalid-type-form error reported by ty#4088

Merged
svartkanin merged 1 commit into
archlinux:masterfrom
correctmost:cm/fix-bytes-annotation
Jan 7, 2026
Merged

Fix an invalid-type-form error reported by ty#4088
svartkanin merged 1 commit into
archlinux:masterfrom
correctmost:cm/fix-bytes-annotation

Conversation

@correctmost

Copy link
Copy Markdown
Contributor

PR Description:

The 'bytes' annotation for the 'bytes' property was actually a forward reference to the property instead of builtins.bytes: astral-sh/ty#1747 (comment)

ty was reporting this error:

archinstall/lib/models/device.py:775:21: error[invalid-type-form] Variable of type `property` is not allowed in a type expression

The 'bytes' annotation for the 'bytes' property was actually a
forward reference to the property instead of builtins.bytes:
astral-sh/ty#1747 (comment)
@correctmost correctmost requested a review from Torxed as a code owner January 6, 2026 22:00
@svartkanin

Copy link
Copy Markdown
Collaborator

I'm looking forward to ty being mature enough, if it's as good as uv it should be a blast

@svartkanin svartkanin merged commit bb13139 into archlinux:master Jan 7, 2026
9 checks passed
@correctmost correctmost deleted the cm/fix-bytes-annotation branch January 7, 2026 00:58
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