Skip to content

Commit 7b78230

Browse files
committed
Ough, there's snapshot_optional_type
1 parent 6b8a7ca commit 7b78230

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/server/astdiff.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -471,7 +471,7 @@ def visit_callable_type(self, typ: CallableType) -> SnapshotItem:
471471
typ.is_ellipsis_args,
472472
snapshot_types(typ.variables),
473473
typ.is_bound,
474-
snapshot_types([typ.original_self_type] if typ.original_self_type is not None else []),
474+
snapshot_optional_type(typ.original_self_type),
475475
)
476476

477477
def normalize_callable_variables(self, typ: CallableType) -> CallableType:

0 commit comments

Comments
 (0)