Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Apr 4, 2026
commit 53818325e3610a387b1135318cd71961125abeee
4 changes: 3 additions & 1 deletion mypy/checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -7884,7 +7884,9 @@ def infer_issubclass_maps(self, node: CallExpr, expr: Expression) -> tuple[TypeM
return {}, {}

issubclass_type = self.get_isinstance_type(node.args[1])
yes_type, no_type = self.conditional_types_with_intersection(vartype, issubclass_type, expr)
yes_type, no_type = self.conditional_types_with_intersection(
vartype, issubclass_type, expr
)
yes_map, no_map = conditional_types_to_typemaps(expr, yes_type, no_type)
yes_map, no_map = map(convert_to_typetype, (yes_map, no_map))
return yes_map, no_map
Expand Down
Loading