Skip to content

Commit 9584506

Browse files
committed
pyright fixes for older python versions
1 parent 23170ee commit 9584506

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

progressbar/bar.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@
3434
# float also accepts integers and longs but we don't want an explicit union
3535
# due to type checking complexity
3636
NumberT = float
37-
ValueT = typing.Union[
38-
NumberT, typing.Type[base.UnknownLength], None
39-
]
37+
ValueT = typing.Union[NumberT, typing.Type[base.UnknownLength], None]
4038

4139
T = types.TypeVar('T')
4240

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ envlist =
44
py39
55
py310
66
py311
7+
py312
78
docs
89
black
910
ruff
@@ -45,7 +46,7 @@ whitelist_externals =
4546
commands =
4647
rm -f docs/modules.rst
4748
mkdir -p docs/_static
48-
sphinx-apidoc -e -o docs/ progressbar
49+
sphinx-apidoc -e -o docs/ progressbar os_specific
4950
rm -f docs/modules.rst
5051
sphinx-build -b html -d docs/_build/doctrees docs docs/_build/html {posargs}
5152

0 commit comments

Comments
 (0)