Skip to content

Commit

Permalink
chore(deps): update dependency black to v24 (#294)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency black to v24

* Fix linting

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Guðmundur Björn Birkisson <gudmundur.birkisson@oda.com>
  • Loading branch information
renovate[bot] and Guðmundur Björn Birkisson authored Jan 26, 2024
1 parent 1c22963 commit 2e3b73e
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 34 deletions.
48 changes: 24 additions & 24 deletions poetry.lock

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

3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ sentry = ["structlog-sentry"]

[tool.poetry.group.dev.dependencies]
isort = "^5.12.0"
black = "^23.7.0"
black = "^24.0.0"
flake8 = "^7.0.0"
mypy = "^1.5.0"
pytest = "^7.4.0"
Expand All @@ -55,7 +55,6 @@ mkdocs-techdocs-core = "^1.2.3"
target-version = ['py311']
line-length = 88
include = '\.pyi?$'
safe = true

[tool.isort]
profile = "black"
Expand Down
12 changes: 4 additions & 8 deletions troncos/tracing/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ def trace_function(
service: str | None = None,
span_type: str | None = None,
attributes: dict[str, str] | None = None,
) -> Callable[P, R]:
...
) -> Callable[P, R]: ...


@overload
Expand All @@ -110,8 +109,7 @@ def trace_function(
service: str | None = None,
span_type: str | None = None,
attributes: dict[str, str] | None = None,
) -> Callable[[Callable[P, R]], Callable[P, R]]:
...
) -> Callable[[Callable[P, R]], Callable[P, R]]: ...


def trace_function(
Expand Down Expand Up @@ -153,8 +151,7 @@ def trace_class(
service: str | None = None,
span_type: str | None = None,
attributes: dict[str, str] | None = None,
) -> Callable[[Type[TClass]], Type[TClass]]:
...
) -> Callable[[Type[TClass]], Type[TClass]]: ...


@overload
Expand All @@ -165,8 +162,7 @@ def trace_class(
service: str | None = None,
span_type: str | None = None,
attributes: dict[str, str] | None = None,
) -> Type[TClass]:
...
) -> Type[TClass]: ...


def trace_class(
Expand Down

0 comments on commit 2e3b73e

Please sign in to comment.