abysshub 1.0.1.dev15__tar.gz → 1.0.1.dev17__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/PKG-INFO +1 -1
  2. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/pyproject.toml +1 -1
  3. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/_async_client.py +1 -7
  4. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/_client.py +1 -7
  5. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/tests/fake_server.py +1 -1
  6. abysshub-1.0.1.dev17/vulture_whitelist.py +2 -0
  7. abysshub-1.0.1.dev15/vulture_whitelist.py +0 -6
  8. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/.gitignore +0 -0
  9. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/LICENSE +0 -0
  10. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/README.md +0 -0
  11. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/__init__.py +0 -0
  12. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/__main__.py +0 -0
  13. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/_command.py +0 -0
  14. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/_env.py +0 -0
  15. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/_error.py +0 -0
  16. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/_files.py +0 -0
  17. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/_http.py +0 -0
  18. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/_run.py +0 -0
  19. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/_types.py +0 -0
  20. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/src/abysshub/py.typed +0 -0
  21. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/tests/caller.py +0 -0
  22. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/tests/conftest.py +0 -0
  23. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/tests/test_client.py +0 -0
  24. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/tests/test_command.py +0 -0
  25. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/tests/test_files.py +0 -0
  26. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/tests/test_http.py +0 -0
  27. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/tests/test_package.py +0 -0
  28. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/tests/test_replay.py +0 -0
  29. {abysshub-1.0.1.dev15 → abysshub-1.0.1.dev17}/tests/test_timeout.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: abysshub
3
- Version: 1.0.1.dev15
3
+ Version: 1.0.1.dev17
4
4
  Summary: Run a hosted tool, an Abyss Widget, from your own Python code and get its result and files. The official library for the Abyss API.
5
5
  Project-URL: Homepage, https://abysshub.com/docs#api
6
6
  Project-URL: Documentation, https://abysshub.com/docs
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "abysshub"
7
- version = "1.0.1.dev15"
7
+ version = "1.0.1.dev17"
8
8
  description = "Run a hosted tool, an Abyss Widget, from your own Python code and get its result and files. The official library for the Abyss API."
9
9
  keywords = [
10
10
  "abyss",
@@ -3,7 +3,6 @@ from __future__ import annotations
3
3
  import asyncio
4
4
  import math
5
5
  from collections.abc import Awaitable, Callable, Mapping
6
- from types import TracebackType
7
6
  from typing import Any
8
7
 
9
8
  import httpx
@@ -142,12 +141,7 @@ class AsyncAbyss(_Base[AsyncRun]):
142
141
  async def __aenter__(self) -> AsyncAbyss:
143
142
  return self
144
143
 
145
- async def __aexit__(
146
- self,
147
- exc_type: type[BaseException] | None,
148
- exc: BaseException | None,
149
- tb: TracebackType | None,
150
- ) -> None:
144
+ async def __aexit__(self, *_: object) -> None:
151
145
  await self.close()
152
146
 
153
147
  async def run(
@@ -10,7 +10,6 @@ import uuid
10
10
  from collections.abc import Callable, Mapping
11
11
  from dataclasses import dataclass
12
12
  from importlib import metadata
13
- from types import TracebackType
14
13
  from typing import Any, Generic, TypeVar
15
14
  from urllib.parse import quote, urlencode
16
15
 
@@ -379,12 +378,7 @@ class Abyss(_Base[Run]):
379
378
  def __enter__(self) -> Abyss:
380
379
  return self
381
380
 
382
- def __exit__(
383
- self,
384
- exc_type: type[BaseException] | None,
385
- exc: BaseException | None,
386
- tb: TracebackType | None,
387
- ) -> None:
381
+ def __exit__(self, *_: object) -> None:
388
382
  self.close()
389
383
 
390
384
  def run(
@@ -50,7 +50,7 @@ class Replay:
50
50
  class Handler(BaseHTTPRequestHandler):
51
51
  protocol_version = "HTTP/1.1"
52
52
 
53
- def log_message(self, format: str, *args: Any) -> None:
53
+ def log_message(self, *_: Any) -> None:
54
54
  pass
55
55
 
56
56
  def do_GET(self) -> None:
@@ -0,0 +1,2 @@
1
+ # vulture's findings when the dead-code check began, which it no longer reports. A name
2
+ # leaves when its last finding is gone (tests/test_package.py checks that each still is).
@@ -1,6 +0,0 @@
1
- # vulture's findings when the dead-code check began, which it no longer reports. A name
2
- # leaves when its last finding is gone (tests/test_package.py checks that each still is).
3
- exc_type # unused variable (src/abysshub/_async_client.py:147, src/abysshub/_client.py:384)
4
- exc # unused variable (src/abysshub/_async_client.py:148, src/abysshub/_client.py:385)
5
- tb # unused variable (src/abysshub/_async_client.py:149, src/abysshub/_client.py:386)
6
- format # unused variable (tests/fake_server.py:53)
File without changes
File without changes