Skip to content

Add Python 3.15 profiling stubs#15745

Merged
JelleZijlstra merged 18 commits intopython:mainfrom
JelleZijlstra:codex/python315-profiling
May 10, 2026
Merged

Add Python 3.15 profiling stubs#15745
JelleZijlstra merged 18 commits intopython:mainfrom
JelleZijlstra:codex/python315-profiling

Conversation

@JelleZijlstra
Copy link
Copy Markdown
Member

Adds a small batch of Python 3.15 profiling stubs:

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@JelleZijlstra JelleZijlstra marked this pull request as ready for review May 9, 2026 21:48
class PstatsCollector(Collector):
def __init__(self, sample_interval_usec: int, *, skip_idle: bool = False) -> None: ...
def collect(
self, stack_frames: Sequence[InterpreterInfo] | Sequence[AwaitedInfo], timestamps_us: _Timestamps = None
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think we should add a protocol SupportsIterAndGetItem (or similar) to _typeshed. I've seen this pattern (check the first item if it exists, but also iterate) a few times now. (Alternatively, SequenceLike from #15152, of course.)

Not a blocker for this PR, though.

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

@JelleZijlstra JelleZijlstra merged commit a58999c into python:main May 10, 2026
56 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