File tree Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Expand file tree Collapse file tree 4 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -52,12 +52,10 @@ jobs:
52
52
black django_typer --check
53
53
pylint django_typer
54
54
mypy django_typer
55
+ pyright
55
56
poetry check
56
57
pip check
57
58
python -m readme_renderer ./README.md -o /tmp/README.html
58
59
cd ./doc
59
60
doc8 --ignore-path build --max-line-length 100
60
61
echo "$(poetry env info --path)/bin" >> $GITHUB_PATH
61
-
62
- # - name: Run pyright
63
- # uses: jakebailey/pyright-action@v2
Original file line number Diff line number Diff line change @@ -1210,8 +1210,8 @@ class TyperCommandMeta(type):
1210
1210
"""
1211
1211
1212
1212
style : ColorStyle
1213
- stdout : t . IO [ str ]
1214
- stderr : t . IO [ str ]
1213
+ stdout : BaseOutputWrapper
1214
+ stderr : BaseOutputWrapper
1215
1215
requires_system_checks : t .Union [t .Sequence [str ], str ]
1216
1216
suppressed_base_arguments : t .Optional [t .Iterable [str ]]
1217
1217
typer_app : Typer
Original file line number Diff line number Diff line change 21
21
patch .apply ()
22
22
23
23
rich : t .Union [ModuleType , None ] = None
24
+ traceback : t .Union [ModuleType , None ] = None
24
25
25
26
try :
26
27
import sys
34
35
# install rich tracebacks if we've been configured to do so (default)
35
36
no_color = "NO_COLOR" in os .environ
36
37
force_color = "FORCE_COLOR" in os .environ
38
+ traceback = t .cast (ModuleType , traceback )
37
39
traceback .install (
38
40
console = tb_config .pop (
39
41
"console" ,
Original file line number Diff line number Diff line change @@ -88,6 +88,7 @@ scipy = [
88
88
]
89
89
django-stubs = " ^4.2.7"
90
90
pexpect = " ^4.9.0"
91
+ pyright = " ^1.1.357"
91
92
92
93
[tool .poetry .extras ]
93
94
rich = [" rich" ]
You can’t perform that action at this time.
0 commit comments