File tree Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Expand file tree Collapse file tree 3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11
11
from typing import Iterable , Iterator , Mapping
12
12
from typing_extensions import Final , overload
13
13
14
+ from mypy_extensions import mypyc_attr
15
+
14
16
import mypy .options
15
17
from mypy .modulefinder import ModuleNotFoundReason
16
18
from mypy .moduleinspect import InspectError , ModuleInspect
@@ -326,6 +328,7 @@ def infer_method_ret_type(name: str) -> str | None:
326
328
return None
327
329
328
330
331
+ @mypyc_attr (allow_interpreted_subclasses = True )
329
332
class SignatureGenerator :
330
333
"""Abstract base class for extracting a list of FunctionSigs for each function."""
331
334
@@ -479,6 +482,7 @@ def import_lines(self) -> list[str]:
479
482
return result
480
483
481
484
485
+ @mypyc_attr (allow_interpreted_subclasses = True )
482
486
class BaseStubGenerator :
483
487
# These names should be omitted from generated stubs.
484
488
IGNORED_DUNDERS : Final = {
Original file line number Diff line number Diff line change 2
2
3
3
from __future__ import annotations
4
4
5
- from mypy_extensions import mypyc_attr
5
+ from mypy_extensions import mypyc_attr , trait
6
6
7
7
from mypy .nodes import (
8
8
REVEAL_TYPE ,
94
94
from mypy .visitor import NodeVisitor
95
95
96
96
97
+ @trait
97
98
@mypyc_attr (allow_interpreted_subclasses = True )
98
99
class TraverserVisitor (NodeVisitor [None ]):
99
100
"""A parse tree visitor that traverses the parse tree during visiting.
Original file line number Diff line number Diff line change @@ -110,10 +110,8 @@ def run(self):
110
110
"version.py" ,
111
111
# Skip these to reduce the size of the build
112
112
"stubtest.py" ,
113
- "stubgen.py" ,
114
113
"stubgenc.py" ,
115
114
"stubdoc.py" ,
116
- "stubutil.py" ,
117
115
)
118
116
) + (
119
117
# Don't want to grab this accidentally
You can’t perform that action at this time.
0 commit comments