python / python/typeshed

`__static_attributes__` class attribute from Python 3.13

Open
#12,136 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
5.1k
Forks
2.1k
Avg merge
1d 19h
Merged PRs (30d)
82

Description

Python 3.13 introduced __static_attributes__ special attribute for classes. The trick is - it is not defined on object ...

AttributeError: type object 'object' has no attribute '__static_attributes__'

What is the best way to declare it in typeshed? As object attribute anyway? Or there is no way atm?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start with the Python 3.13 documentation for static_attributes and inspect typeshed's existing object and class stubs; determine the supported declaration approach and confirm that the issue's AttributeError case is represented correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.