Merge pull request #21419 from github/tausbn/python-improve-overloaded-method-resolution

Python: Improve modelling of overloaded methods
This commit is contained in:
Taus
2026-03-09 16:25:05 +01:00
committed by GitHub
5 changed files with 92 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
category: minorAnalysis
---
- The call graph resolution no longer considers methods marked using [`@typing.overload`](https://typing.python.org/en/latest/spec/overload.html#overloads) as valid targets. This ensures that only the method that contains the actual implementation gets resolved as a target.