Skip to content

Commit a03d835

Browse files
committed
Fix typing issues
1 parent ccfe037 commit a03d835

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

.github/workflows/downstream.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010

1111
jobs:
1212
tests:
13-
if: "contains(github.event.pull_request.labels.*.name, 'poetry downstream tests')"
1413
name: ${{ matrix.ref }}
14+
if: "contains(github.event.pull_request.labels.*.name, 'poetry downstream tests')"
1515
runs-on: ubuntu-latest
1616
strategy:
1717
matrix:

src/cleo/io/outputs/output.py

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@
1414

1515

1616
class Verbosity(Enum):
17-
QUIET: int = 16
18-
NORMAL: int = 32
19-
VERBOSE: int = 64
20-
VERY_VERBOSE: int = 128
21-
DEBUG: int = 256
17+
QUIET = 16
18+
NORMAL = 32
19+
VERBOSE = 64
20+
VERY_VERBOSE = 128
21+
DEBUG = 256
2222

2323

2424
class Type(Enum):
25-
NORMAL: int = 1
26-
RAW: int = 2
27-
PLAIN: int = 4
25+
NORMAL = 1
26+
RAW = 2
27+
PLAIN = 4
2828

2929

3030
class Output:

src/cleo/terminal.py

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ def _get_terminal_size(self) -> TerminalSize:
5050

5151
if width <= 0 or height <= 0:
5252
try:
53+
assert sys.__stdout__ is not None
5354
os_size = os.get_terminal_size(sys.__stdout__.fileno())
5455
size = TerminalSize(*os_size)
5556
except (AttributeError, ValueError, OSError):

0 commit comments

Comments
 (0)