Skip to content

Commit

Permalink
Fix typing issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Secrus committed Jan 3, 2025
1 parent ccfe037 commit a03d835
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/downstream.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ on:

jobs:
tests:
if: "contains(github.event.pull_request.labels.*.name, 'poetry downstream tests')"
name: ${{ matrix.ref }}
if: "contains(github.event.pull_request.labels.*.name, 'poetry downstream tests')"
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
16 changes: 8 additions & 8 deletions src/cleo/io/outputs/output.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@


class Verbosity(Enum):
QUIET: int = 16
NORMAL: int = 32
VERBOSE: int = 64
VERY_VERBOSE: int = 128
DEBUG: int = 256
QUIET = 16
NORMAL = 32
VERBOSE = 64
VERY_VERBOSE = 128
DEBUG = 256


class Type(Enum):
NORMAL: int = 1
RAW: int = 2
PLAIN: int = 4
NORMAL = 1
RAW = 2
PLAIN = 4


class Output:
Expand Down
1 change: 1 addition & 0 deletions src/cleo/terminal.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def _get_terminal_size(self) -> TerminalSize:

if width <= 0 or height <= 0:
try:
assert sys.__stdout__ is not None
os_size = os.get_terminal_size(sys.__stdout__.fileno())
size = TerminalSize(*os_size)
except (AttributeError, ValueError, OSError):
Expand Down

0 comments on commit a03d835

Please sign in to comment.