Skip to content

Comments

Preserve @bindable_dataclass return type (fixes #5798)#5807

Open
platinops wants to merge 4 commits intozauberzeug:mainfrom
platinops:typing-bindable-dataclass
Open

Preserve @bindable_dataclass return type (fixes #5798)#5807
platinops wants to merge 4 commits intozauberzeug:mainfrom
platinops:typing-bindable-dataclass

Conversation

@platinops
Copy link
Contributor

Motivation

As discussed in #5798, typing breaks on a class decorated with bindable_dataclass.

Implementation

This PR implements the solution brought forward by @falkoschindler: #5798 (comment)

I verified it's working on both my Windows and Red Hat Linux VS Code environments.

Progress

  • I chose a meaningful title that completes the sentence: "If applied, this PR will..."
  • The implementation is complete.
  • Pytests are not necessary.
  • Documentation is not necessary.

@platinops platinops changed the title Preserve @bindable_dataclass return type (fixes #5798) Preserve @bindable_dataclass return type (fixes #5798) Feb 18, 2026
@evnchn
Copy link
Collaborator

evnchn commented Feb 19, 2026

Hello @platinops. Could you please ensure mypy and pylint passes? Thanks.

@evnchn evnchn added feature Type/scope: New or intentionally changed behavior in progress Status: Someone is working on it labels Feb 19, 2026
@evnchn evnchn linked an issue Feb 19, 2026 that may be closed by this pull request
4 tasks
@falkoschindler falkoschindler added this to the 3.10 milestone Feb 19, 2026
@platinops
Copy link
Contributor Author

Hi @evnchn, looks like the mypy errors are gone with the latest commit.

@evnchn evnchn added review Status: PR is open and needs review and removed in progress Status: Someone is working on it labels Feb 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Type/scope: New or intentionally changed behavior review Status: PR is open and needs review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Class loses type due to bindable_dataclass decorator (in VS Code)

3 participants