Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
python
/
typeshed
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
2.1k
Star
5.1k
Code
Issues
201
Pull requests
140
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Commits
Breadcrumbs
History for
typeshed
stdlib
_operator.pyi
on
main
User selector
All users
Datepicker
All time
Commit history
Commits on Aug 15, 2026
_operator: Accept readable buffers in _compare_digest (#16211)
nightcityblade
authored
5fb54bd
View commit details
Copy full SHA for 5fb54bd
View code at this point
Browse repository at this point
Commits on May 17, 2026
Upgrade black to 26.5.0 (#15801)
AlexWaygood
authored
5372bd5
View commit details
Copy full SHA for 5372bd5
View code at this point
Browse repository at this point
Commits on May 7, 2026
Import some items from typing instead of typing_extensions (#15711)
Show description for 3f74e6e
srittau
authored
3f74e6e
View commit details
Copy full SHA for 3f74e6e
View code at this point
Browse repository at this point
Commits on Apr 5, 2026
[_operator] Type `add` and `sub` (#15601)
hunterhogan
authored
c6b7c0b
View commit details
Copy full SHA for c6b7c0b
View code at this point
Browse repository at this point
[_operator] Type `mod` (#15577)
Show description for 4edae94
hunterhogan
authored
4edae94
View commit details
Copy full SHA for 4edae94
View code at this point
Browse repository at this point
Commits on Apr 2, 2026
[_operator] Type `mul` and remove `Any`s that can be improved (#15598)
srittau
authored
25bc534
View commit details
Copy full SHA for 25bc534
View code at this point
Browse repository at this point
Commits on Jan 23, 2026
Specialize plain `slice` type hints (#13007)
randolf-scholz
authored
5c49b1f
View commit details
Copy full SHA for 5c49b1f
View code at this point
Browse repository at this point
Commits on Aug 3, 2025
Add `@type_check_only` to stub-only private classes in stdlib (#14512)
brianschubert
authored
622df68
View commit details
Copy full SHA for 622df68
View code at this point
Browse repository at this point
Commits on Jul 26, 2025
Add `@type_check_only` to various typeshed-only procotols in stdlib (#14465)
Show description for f88a09d
brianschubert
authored
f88a09d
View commit details
Copy full SHA for f88a09d
View code at this point
Browse repository at this point
Commits on Oct 11, 2024
move _operator classes to operator (#12745)
tungol
authored
03fe755
View commit details
Copy full SHA for 03fe755
View code at this point
Browse repository at this point
Commits on Aug 17, 2024
Add stubs for `operator.is_none` and `operator.is_not_none` (#12535)
Show description for eb8e9dd
ZeroIntensity
and
Akuli
authored
eb8e9dd
View commit details
Copy full SHA for eb8e9dd
View code at this point
Browse repository at this point
Commits on Mar 9, 2024
Use PEP 570 syntax in stdlib (#11250)
hauntsaninja
authored
470a13a
View commit details
Copy full SHA for 470a13a
View code at this point
Browse repository at this point
Commits on Feb 29, 2024
Fix `_operator.attrgetter` pos-only params (#11504)
Show description for fa4ca40
sobolevn
authored
fa4ca40
View commit details
Copy full SHA for fa4ca40
View code at this point
Browse repository at this point
Commits on Jan 5, 2024
Update typing_extensions imports in stdlib (#11244)
Show description for 53a8193
srittau
and
AlexWaygood
authored
53a8193
View commit details
Copy full SHA for 53a8193
View code at this point
Browse repository at this point
Commits on Dec 10, 2023
Replace overload hack in `operator.itemgetter` with PEP 646 Unpack (#11136)
Show description for be55326
3 people
authored
be55326
View commit details
Copy full SHA for be55326
View code at this point
Browse repository at this point
Commits on Feb 1, 2023
stdlib: Add defaults for positional-only parameters (#9655)
AlexWaygood
authored
1d7dda7
View commit details
Copy full SHA for 1d7dda7
View code at this point
Browse repository at this point
Commits on Nov 10, 2022
Improve accuracy of `six` byte index methods (#9117)
Avasam
authored
796bdc2
View commit details
Copy full SHA for 796bdc2
View code at this point
Browse repository at this point
Commits on Apr 18, 2022
Import from `collections.abc` wherever possible (#7635)
AlexWaygood
authored
97a74bc
View commit details
Copy full SHA for 97a74bc
View code at this point
Browse repository at this point
Commits on Apr 16, 2022
Use `TypeAlias` where possible for type aliases (#7630)
AlexWaygood
authored
740193a
View commit details
Copy full SHA for 740193a
View code at this point
Browse repository at this point
Commits on Feb 1, 2022
Improve protocol return types (#7093)
Show description for 54fde0c
srittau
authored
54fde0c
View commit details
Copy full SHA for 54fde0c
View code at this point
Browse repository at this point
Commits on Dec 28, 2021
Use PEP 585 syntax wherever possible (#6717)
AlexWaygood
authored
8d5d252
View commit details
Copy full SHA for 8d5d252
View code at this point
Browse repository at this point
Commits on Dec 26, 2021
Remove `ParamSpec`-related `# type: ignore`s (#6703)
AlexWaygood
authored
a54e219
View commit details
Copy full SHA for a54e219
View code at this point
Browse repository at this point
Commits on Dec 14, 2021
Add `SupportsRichComparison` type to `_typeshed` (#6583)
Show description for 5670ca2
AlexWaygood
authored
5670ca2
View commit details
Copy full SHA for 5670ca2
View code at this point
Browse repository at this point
Commits on Dec 6, 2021
operator: make Protocol parameters positional-only (#6519)
Show description for 72ee95b
JelleZijlstra
and
AlexWaygood
authored
72ee95b
View commit details
Copy full SHA for 72ee95b
View code at this point
Browse repository at this point
Commits on Dec 1, 2021
Improve BinOp comparison funcs in `operator` (#6462)
AlexWaygood
authored
6246e78
View commit details
Copy full SHA for 6246e78
View code at this point
Browse repository at this point
Commits on Nov 30, 2021
`Any`->`object` in `operator.contains`/`operator.countOf` (#6459)
Show description for f2a7d66
AlexWaygood
and
Akuli
authored
f2a7d66
View commit details
Copy full SHA for f2a7d66
View code at this point
Browse repository at this point
Use `SupportsIndex` in `operator.index` (#6460)
AlexWaygood
authored
c3753d3
View commit details
Copy full SHA for c3753d3
View code at this point
Browse repository at this point
Improve unary-operator functions in `operator` (#6452)
AlexWaygood
authored
93cb52b
View commit details
Copy full SHA for 93cb52b
View code at this point
Browse repository at this point
`operator.length_hint`: `Any` -> `object` (#6456)
AlexWaygood
authored
9ccfc58
View commit details
Copy full SHA for 9ccfc58
View code at this point
Browse repository at this point
`operator.eq`: `Any` -> `object` (#6457)
AlexWaygood
authored
f3632f8
View commit details
Copy full SHA for f3632f8
View code at this point
Browse repository at this point
`Any` -> `object` in simple `operator` funcs (#6451)
AlexWaygood
authored
1f62ff6
View commit details
Copy full SHA for 1f62ff6
View code at this point
Browse repository at this point
Commits on Nov 29, 2021
Fix _operator.indexOf signature (#6435)
Show description for 2836e53
JelleZijlstra
and
Akuli
authored
2836e53
View commit details
Copy full SHA for 2836e53
View code at this point
Browse repository at this point
Commits on Nov 28, 2021
operator.countOf takes Iterable (#6431)
Akuli
authored
71999b7
View commit details
Copy full SHA for 71999b7
View code at this point
Browse repository at this point
move definitions from operator to _operator (#6429)
Akuli
authored
524775d
View commit details
Copy full SHA for 524775d
View code at this point
Browse repository at this point
Commits on Nov 27, 2021
Add `operator.call()` and `operator.__call__()` for Python 3.11 (#6396)
Show description for 575a008
lancelote
and
Akuli
authored
575a008
View commit details
Copy full SHA for 575a008
View code at this point
Browse repository at this point
Previous
Next
You can’t perform that action at this time.