Skip to content

Commit c4dad2e

Browse files
committed
fix: Resolved invalid classifiers in pyproject.toml
1 parent ea7315a commit c4dad2e

2 files changed

Lines changed: 13 additions & 5 deletions

File tree

pyproject.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,18 @@
22
name = "sqlnotify"
33
version = "0.1.0"
44
description = "A near real-time SQL notification library for database changes, supporting PostgreSQL and SQLite."
5-
readme = {file = "README.md", content-type = "text/markdown"}
5+
readme = { file = "README.md", content-type = "text/markdown" }
66
license = "MIT"
77
authors = [{ name = "Daniel Brai", email = "danielbrai.dev@gmail.com" }]
8-
keywords = ["sql", "database", "notification", "asyncio", "postgresql", "sqlite", "sqlalchemy"]
8+
keywords = [
9+
"sql",
10+
"database",
11+
"notification",
12+
"asyncio",
13+
"postgresql",
14+
"sqlite",
15+
"sqlalchemy",
16+
]
917
classifiers = [
1018
"Development Status :: 4 - Beta",
1119

@@ -24,7 +32,6 @@ classifiers = [
2432
"Framework :: AsyncIO",
2533

2634
"Topic :: Database",
27-
"Topic :: Database :: Utilities",
2835
"Topic :: Software Development :: Libraries :: Python Modules",
2936

3037
"Typing :: Typed",

src/sqlnotify/dialects/postgresql.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,6 @@ async def notification_handler(
349349
if self._logger:
350350
self._logger.error(f"Error processing notification: {str(e)}", exc_info=True)
351351

352-
# Track pending notification tasks to ensure they complete
353352
pending_tasks: set[asyncio.Task] = set()
354353

355354
def sync_tracked_notification_handler(
@@ -358,9 +357,11 @@ def sync_tracked_notification_handler(
358357
channel: str,
359358
payload: str,
360359
) -> None:
361-
"""Synchronous wrapper that creates and tracks async tasks"""
360+
362361
task = asyncio.create_task(notification_handler(conn, pid, channel, payload))
362+
363363
pending_tasks.add(task)
364+
364365
task.add_done_callback(pending_tasks.discard)
365366

366367
try:

0 commit comments

Comments
 (0)