Skip to content

Commit

Permalink
fix: if-or condition clause fix & deps update
Browse files Browse the repository at this point in the history
  • Loading branch information
psadi committed Aug 27, 2024
1 parent 1a332d0 commit 4eb1a35
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
4 changes: 2 additions & 2 deletions bb/pr/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ def create(
target = validate_input(target, "Target branch", "Target branch cannot be none")

title = validate_input(
title, "Title", "", title if title else title_and_description()[0], True
title, "Title", "", title or title_and_description()[0], True
)
description = validate_input(
description,
"Description",
"",
description if description else title_and_description()[1],
description or title_and_description()[1],
True,
)

Expand Down
24 changes: 12 additions & 12 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ exceptiongroup==1.2.2; python_version < "3.11"
filelock==3.15.4
h11==0.14.0
httpcore==1.0.5
httpx==0.27.0
httpx==0.27.2
identify==2.6.0
idna==3.8
iniconfig==2.0.0
markdown-it-py==3.0.0
mdurl==0.1.2
nodeenv==1.9.1
packaging==24.1
pbr==6.0.0
pbr==6.1.0
platformdirs==4.2.2
pluggy==1.5.0
pre-commit==3.8.0
Expand All @@ -33,7 +33,7 @@ pyproject-api==1.7.1
pytest==8.3.2
pytest-cov==5.0.0
pyyaml==6.0.2
rich==13.7.1
rich==13.8.0
ruff==0.6.2
shellingham==1.5.4
sniffio==1.3.1
Expand All @@ -44,4 +44,4 @@ tox-pdm==0.7.2
typer==0.12.5
typing-extensions==4.12.2
virtualenv==20.26.3
zipp==3.20.0
zipp==3.20.1

0 comments on commit 4eb1a35

Please sign in to comment.