Skip to content

Commit

Permalink
Bump ruff from 0.0.282 to 0.0.283 (#52)
Browse files Browse the repository at this point in the history
* Bump ruff from 0.0.282 to 0.0.283

Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.282 to 0.0.283.
- [Release notes](https://github.com/astral-sh/ruff/releases)
- [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md)
- [Commits](astral-sh/ruff@v0.0.282...v0.0.283)

---
updated-dependencies:
- dependency-name: ruff
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Sebastian Lövdahl <slovdahl@hibox.fi>
  • Loading branch information
dependabot[bot] and slovdahl committed Aug 9, 2023
1 parent 3ed0367 commit 1bd5d3b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 23 deletions.
38 changes: 19 additions & 19 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ python = "^3.9"
yarl = ">=1.6.0"

[tool.poetry.group.dev.dependencies]
ruff = ">=0.0.243,<0.0.283"
ruff = ">=0.0.243,<0.0.284"
aresponses = "^2.1.6"
black = ">=22.12,<24.0"
blacken-docs = "^1.13.0"
Expand Down
9 changes: 6 additions & 3 deletions spothinta_api/spothinta.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import socket
from dataclasses import dataclass
from importlib import metadata
from typing import Any, cast
from typing import TYPE_CHECKING, Any, cast

import async_timeout
from aiohttp import ClientResponseError
Expand All @@ -22,6 +22,9 @@
)
from .models import Electricity

if TYPE_CHECKING:
from typing_extensions import Self


@dataclass
class SpotHinta:
Expand Down Expand Up @@ -146,7 +149,7 @@ async def close(self) -> None:
if self.session and self._close_session:
await self.session.close()

async def __aenter__(self) -> SpotHinta:
async def __aenter__(self) -> Self:
"""Async enter.
Returns
Expand All @@ -155,7 +158,7 @@ async def __aenter__(self) -> SpotHinta:
"""
return self

async def __aexit__(self, *_exc_info: Any) -> None:
async def __aexit__(self, *_exc_info: object) -> None:
"""Async exit.
Args:
Expand Down

0 comments on commit 1bd5d3b

Please sign in to comment.