Skip to content

Commit

Permalink
🔀 Merge pull request #137 from davep/pin-textual
Browse files Browse the repository at this point in the history
Pin Textual to >=1,<2 for now
  • Loading branch information
davep authored Feb 16, 2025
2 parents 1f36ce3 + b85519a commit 493c06b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 14 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Braindrop ChangeLog

## v0.7.2

**Released: 2025-02-16**

- Pinned Textual to v1.0.0 for now; as v2.x has introduced some instability.

## v0.7.1

**Released: 2025-01-28**
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
[project]
name = "braindrop"
version = "0.7.1"
version = "0.7.2"
description = "A terminal-based client for raindrop.io."
authors = [
{ name = "Dave Pearson", email = "[email protected]" }
]
dependencies = [
"httpx>=0.27.2",
"textual>=1.0",
"textual>=1.0,<2",
"xdg-base-dirs>=6.0.2",
"pytz>=2024.2",
"humanize>=4.11.0",
Expand Down
16 changes: 8 additions & 8 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
# universal: false

-e file:.
aiohappyeyeballs==2.4.4
aiohappyeyeballs==2.4.6
# via aiohttp
aiohttp==3.11.11
aiohttp==3.11.12
# via aiohttp-jinja2
# via textual-dev
# via textual-serve
Expand Down Expand Up @@ -44,9 +44,9 @@ httpcore==1.0.7
# via httpx
httpx==0.28.1
# via braindrop
humanize==4.11.0
humanize==4.12.0
# via braindrop
identify==2.6.6
identify==2.6.7
# via pre-commit
idna==3.10
# via anyio
Expand Down Expand Up @@ -74,7 +74,7 @@ msgpack==1.1.0
multidict==6.1.0
# via aiohttp
# via yarl
mypy==1.14.1
mypy==1.15.0
mypy-extensions==1.0.0
# via mypy
nodeenv==1.9.1
Expand Down Expand Up @@ -112,19 +112,19 @@ textual==1.0.0
# via textual-enhanced
# via textual-serve
textual-dev==1.7.0
textual-enhanced==0.4.0
textual-enhanced==0.6.0
# via braindrop
textual-serve==1.1.1
# via textual-dev
types-pytz==2024.2.0.20241221
types-pytz==2025.1.0.20250204
typing-extensions==4.12.2
# via braindrop
# via mypy
# via textual
# via textual-dev
uc-micro-py==1.0.3
# via linkify-it-py
virtualenv==20.29.1
virtualenv==20.29.2
# via pre-commit
xdg-base-dirs==6.0.2
# via braindrop
Expand Down
4 changes: 2 additions & 2 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ httpcore==1.0.7
# via httpx
httpx==0.28.1
# via braindrop
humanize==4.11.0
humanize==4.12.0
# via braindrop
idna==3.10
# via anyio
Expand Down Expand Up @@ -51,7 +51,7 @@ sniffio==1.3.1
textual==1.0.0
# via braindrop
# via textual-enhanced
textual-enhanced==0.4.0
textual-enhanced==0.6.0
# via braindrop
typing-extensions==4.12.2
# via braindrop
Expand Down
4 changes: 2 additions & 2 deletions src/braindrop/app/widgets/raindrop_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
##############################################################################
# Python imports.
from datetime import datetime
from typing import Any, Callable, Final, cast
from typing import Any, Callable, Final

##############################################################################
# Humanize imports.
Expand Down Expand Up @@ -225,7 +225,7 @@ def _set(
widget: The ID of the widget to set.
value: The value to set.
"""
cast(Label | Markdown, self.query_one(f"#{widget}", widget_type)).update(value)
self.query_one(f"#{widget}", widget_type).update(value)
self.query_one(f"#{widget}").set_class(not bool(value), "empty")

@staticmethod
Expand Down

0 comments on commit 493c06b

Please sign in to comment.