Skip to content

Docs: update two sentences that still say special methods don't work - #941

Merged
craigbarratt merged 1 commit into
custom-components:masterfrom
jfriend00:special-methods-docs
Dec 3, 2026
Merged

craigbarratt merged 1 commit into
custom-components:masterfrom
jfriend00:special-methods-docs

Conversation

@jfriend00

Copy link
Copy Markdown
Contributor

#940 made most special methods of pyscript classes work, but two sentences outside Language Limitations still say they don't:

  • reference.rst, the @pyscript_compile intro: it gave __getattr__ and __del__ as special methods that a pyscript function can't be. It now gives __setattr__ and __del__ as examples of the few that still can't, and points to Language Limitations for the details.
  • overview.rst: "Pyscript supports almost all Python language features except generator functions, yield, and defining special class methods" now ends "and a few special class methods". This also drops a stray period before "(see language limitations)".

Work assisted by Claude Code

@craigbarratt craigbarratt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks @jfriend00, good catch. Approving.

@craigbarratt
craigbarratt merged commit ffb1602 into custom-components:master Dec 3, 2026
6 checks passed
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