Skip to content

Add type annotations to sage.misc.object_multiplexer - #42830

Merged
vbraun merged 1 commit into
sagemath:developfrom
ishikajain-234:add-typing-object-multiplexer
Oct 3, 2026
Merged

vbraun merged 1 commit into
sagemath:developfrom
ishikajain-234:add-typing-object-multiplexer

Conversation

@ishikajain-234

Copy link
Copy Markdown
Contributor

Description

Adds type annotations to MultiplexFunction and Multiplex in
sage/misc/object_multiplexer.py, as part of the ongoing effort
tracked in #41722 to improve static analysis (pyright/mypy/ty)
coverage across the Sage codebase.

Checklist

  • The title is concise and informative.
  • The description explains in detail what this PR is about.
  • I have linked a relevant issue or discussion.
  • I have created tests covering the changes. (N/A — type-only change, verified with ast.parse; no runtime behavior change since Python does not enforce type hints)
  • I have updated the documentation and checked the documentation preview.

Dependencies

None.

@github-actions

Copy link
Copy Markdown

Documentation preview for this PR (built with commit 675af84; changes) is ready! 🎉
This preview will update shortly after each push to this PR.

vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 1, 2026
Release Manager
sagemathgh-42830: Add type annotations to sage.misc.object_multiplexer
    
### Description

Adds type annotations to `MultiplexFunction` and `Multiplex` in
`sage/misc/object_multiplexer.py`, as part of the ongoing effort
tracked in sagemath#41722 to improve static analysis (pyright/mypy/ty)
coverage across the Sage codebase.

### Checklist
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes. (N/A — type-only
change, verified with `ast.parse`; no runtime behavior change since
Python does not enforce type hints)
- [ ] I have updated the documentation and checked the documentation
preview.

### Dependencies
None.
    
URL: sagemath#42830
Reported by: ishika jain
Reviewer(s):
vbraun pushed a commit to vbraun/sage that referenced this pull request Oct 3, 2026
Release Manager
sagemathgh-42830: Add type annotations to sage.misc.object_multiplexer
    
### Description

Adds type annotations to `MultiplexFunction` and `Multiplex` in
`sage/misc/object_multiplexer.py`, as part of the ongoing effort
tracked in sagemath#41722 to improve static analysis (pyright/mypy/ty)
coverage across the Sage codebase.

### Checklist
- [x] The title is concise and informative.
- [x] The description explains in detail what this PR is about.
- [x] I have linked a relevant issue or discussion.
- [x] I have created tests covering the changes. (N/A — type-only
change, verified with `ast.parse`; no runtime behavior change since
Python does not enforce type hints)
- [ ] I have updated the documentation and checked the documentation
preview.

### Dependencies
None.
    
URL: sagemath#42830
Reported by: ishika jain
Reviewer(s):
@vbraun
vbraun merged commit 755b8c7 into sagemath:develop Oct 3, 2026
24 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