Skip to content
This repository has been archived by the owner on Jul 14, 2022. It is now read-only.

Commit

Permalink
Fix flake8.
Browse files Browse the repository at this point in the history
  • Loading branch information
futursolo committed May 15, 2021
1 parent 32f6474 commit 4112dfa
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/everything.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9]
os: [macOS, Ubuntu]

steps:
Expand Down
4 changes: 4 additions & 0 deletions hiyori/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
)
import asyncio
import collections
import dataclasses
import re
import ssl
import urllib.parse
Expand Down Expand Up @@ -64,6 +65,7 @@
]


@dataclasses.dataclass
class _ReadLock:
def __init__(self, client_lock: "_ClientLock") -> None:
self._idling = asyncio.Event()
Expand All @@ -88,6 +90,7 @@ async def __aexit__(self, *args: Any, **kwargs: Any) -> None:
self._idling.set()


@dataclasses.dataclass
class _CloseLock:
def __init__(self, client_lock: "_ClientLock") -> None:
self._closing = False
Expand All @@ -103,6 +106,7 @@ async def __aexit__(self, *args: Any, **kwargs: Any) -> None:
pass


@dataclasses.dataclass
class _ClientLock:
def __init__(self) -> None:
self.read_lock = _ReadLock(self)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ classifiers=[
include=["hiyori/py.typed"]

[tool.poetry.dependencies]
python = "^3.6.1"
python = "^3.7.1"
importlib-metadata = { version = "^4.0.1", python = "<=3.7" }

# Http
Expand Down

0 comments on commit 4112dfa

Please sign in to comment.