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
Accelerator
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
Type
/
to 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
/
mypy
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
3.3k
Star
20.6k
Code
Issues
2.7k
Pull requests
459
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Fix Type Comparison Edge Cases
- #20277
#20277
Closed
George-Ogden
wants to merge 12 commits into
python:master
python/mypy:master
from
George-Ogden:type-comparison
George-Ogden/mypy:type-comparison
Copy head branch name to clipboard
Conversation
Commits
12
(12)
Checks
Files changed
Closed
Fix Type Comparison Edge Cases
#20277
George-Ogden
wants to merge 12 commits into
python:master
python/mypy:master
from
George-Ogden:type-comparison
George-Ogden/mypy:type-comparison
Copy head branch name to clipboard
Commits
Commits on Nov 20, 2025
Neaten double check to type guard
George-Ogden
committed
19ba56b
View commit details
Copy full SHA for 19ba56b
Browse repository at this point
Use least type during type equality comparison
George-Ogden
committed
df86e64
View commit details
Copy full SHA for df86e64
Browse repository at this point
Keep equal types in chained comparison
George-Ogden
committed
9b8aadb
View commit details
Copy full SHA for 9b8aadb
Browse repository at this point
Add unit tests for new cases
George-Ogden
committed
50939a5
View commit details
Copy full SHA for 50939a5
Browse repository at this point
Commits on Nov 21, 2025
Revert "Neaten double check to type guard"
Show description for 1189e88
George-Ogden
committed
1189e88
View commit details
Copy full SHA for 1189e88
Browse repository at this point
Compare type ranges using is_same_type_ranges
George-Ogden
committed
9e50b14
View commit details
Copy full SHA for 9e50b14
Browse repository at this point
Remove strict keyword from zip
George-Ogden
committed
cf82cb5
View commit details
Copy full SHA for cf82cb5
Browse repository at this point
Fix type hint on is_same_type_range
George-Ogden
committed
2a5870c
View commit details
Copy full SHA for 2a5870c
Browse repository at this point
Commits on Nov 23, 2025
Rewrite find type equality to intersect instances
George-Ogden
committed
d993793
View commit details
Copy full SHA for d993793
Browse repository at this point
Remove redundant code
George-Ogden
committed
91fbc3e
View commit details
Copy full SHA for 91fbc3e
Browse repository at this point
Rewrite type equals narrowing with type ranges
George-Ogden
committed
7a5f33e
View commit details
Copy full SHA for 7a5f33e
Browse repository at this point
Commits on Nov 24, 2025
Use narrow_declared_type instead of meet_types for type narrowing
George-Ogden
committed
df9f695
View commit details
Copy full SHA for df9f695
Browse repository at this point
You can’t perform that action at this time.