#6251·nicegui

Typing issue for `bindable_dataclass` when using `bindable_fields`

Author: FranzForstmayrCreated Aug 6, 2026Updated Aug 23, 2026
Labelsbug

First Check

  • I added a very descriptive title here.
  • This is not a security issue (those should be reported via the security advisory instead).
  • This is not a Q&A. I am sure something is wrong with NiceGUI or its documentation.
  • I used the GitHub search to find a similar issue and came up empty.

Example Code

python
from nicegui import binding


# Expected 0 positional arguments
@binding.bindable_dataclass(bindable_fields=["state"])
class ControllerState:
    """Data class for tracking hardware connection status."""

    state: str = "STARTUP"


# Object of type "DataclassInstance" is not callable
#  Attribute "__call__" is unknown
c = ControllerState()

Description

Pyright reports errors when using bindable_fields from bindable_dataclass.

Possibly related to #5798

NiceGUI Version

3.15.0

Python Version

Python 3.13.4

Browser

Other

Operating System

Windows

Additional Context

No response