Add support for TypeGuard type narrowing pattern when called function is overloaded #3572
Labels
addressed in next version
Issue is fixed and will appear in next published version
enhancement request
New feature or request
Currently the
TypeGuard
(PEP 647) type narrowing logic does not handle the case where a function is overloaded with differentTypeGuard
return types. This was intentionally not implemented because of the evaluation cost associated with fully evaluating the overload.This PR in typeshed is proposing to use this functionality.
The text was updated successfully, but these errors were encountered: