Skip to content

Commit 07fca54

Browse files
committed
fix Mypyc build
1 parent bd9d1a9 commit 07fca54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypy/server/astdiff.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,9 @@ def snapshot_definition(node: SymbolNode | None, common: SymbolSnapshot) -> Symb
257257
if isinstance(node, FuncDef):
258258
deprecated = node.deprecated
259259
elif isinstance(node, OverloadedFuncDef):
260-
deprecated_list = [node.deprecated] + [i.func.deprecated for i in node.items]
260+
deprecated_list = [node.deprecated] + [
261+
i.func.deprecated for i in node.items if isinstance(i, Decorator)
262+
]
261263
deprecated_list_cleaned = [d for d in deprecated_list if d is not None]
262264
if deprecated_list_cleaned:
263265
deprecated = ",".join(deprecated_list_cleaned)

0 commit comments

Comments
 (0)