Skip to content

Commit 310983a

Browse files
committed
chore: remove support for python3.7
1 parent 58f6bc0 commit 310983a

13 files changed

Lines changed: 1022 additions & 753 deletions

File tree

.github/workflows/checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
test:
1111
strategy:
1212
matrix:
13-
python: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
13+
python: [ "3.8", "3.9", "3.10", "3.11" ]
1414
os: [ ubuntu-latest, macos-latest, windows-latest ]
1515
runs-on: ${{ matrix.os }}
1616
steps:

lib/binarylane/types.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
""" Contains some shared types for properties """
2+
23
from __future__ import annotations
34

45
from http import HTTPStatus

poetry.lock

Lines changed: 1005 additions & 734 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ readme = "README.md"
77
packages = [{include = "binarylane", from = "src"}, {include = "binarylane", from = "lib" }]
88

99
[tool.poetry.dependencies]
10-
python = "^3.7.2"
10+
python = "^3.8"
1111
terminaltables = "^3.1.10"
1212
httpx = "^0.23.0"
1313
attrs = "^22.2.0"

scripts/generate.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Generate updated API bindings and CLI commands from OpenAPI specification document"""
2+
23
from __future__ import annotations
34

45
import re

src/binarylane/config/options.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,13 @@ class OptionAttributes(ABC):
2222
UNCONFIGURED_TOKEN: ClassVar[str] = "unconfigured"
2323

2424
@abstractmethod
25-
def get_option(self, name: OptionName) -> Optional[str]:
26-
...
25+
def get_option(self, name: OptionName) -> Optional[str]: ...
2726

2827
@abstractmethod
29-
def required_option(self, name: OptionName) -> str:
30-
...
28+
def required_option(self, name: OptionName) -> str: ...
3129

3230
@abstractmethod
33-
def add_option(self, name: OptionName, value: str) -> None:
34-
...
31+
def add_option(self, name: OptionName, value: str) -> None: ...
3532

3633
@staticmethod
3734
def to_bool(name: str) -> bool:

src/binarylane/config/repository.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@
1010

1111

1212
class Source(Protocol):
13-
def get(self, name: str) -> Optional[str]:
14-
...
13+
def get(self, name: str) -> Optional[str]: ...
1514

1615

1716
T = TypeVar("T", bound=Source)

src/binarylane/console/commands/api/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
""" Contains methods for accessing the API """
2+
23
from __future__ import annotations
34

45
import re

src/binarylane/console/parser/attribute.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,10 @@ def group_name(self) -> Optional[str]:
6262
return self.parent.group_name if self.parent else None
6363

6464
@abstractmethod
65-
def configure(self, parser: Parser) -> None:
66-
...
65+
def configure(self, parser: Parser) -> None: ...
6766

6867
@abstractmethod
69-
def construct(self, parser: Parser, parsed: argparse.Namespace) -> object:
70-
...
68+
def construct(self, parser: Parser, parsed: argparse.Namespace) -> object: ...
7169

7270
def _unsupported(self, message: str, error: bool = True) -> None:
7371
"""Report that command parsing is not likely to work correctly"""

src/binarylane/console/parser/list_attribute.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ def configure(self, parser: Parser) -> None:
7676
parser.add_group_help(title=self.title, description=self.description, entries=usage_descriptions)
7777

7878
parser.add_keyword(self.keyword)
79-
parser.add_argument(
80-
self.attribute_name, type=str, nargs=argparse.PARSER, help=argparse.SUPPRESS
81-
).required = False
79+
parser.add_argument(self.attribute_name, type=str, nargs=argparse.PARSER, help=argparse.SUPPRESS).required = (
80+
False
81+
)
8282

8383
def _create_singlestore_action(self, **kwargs: Any) -> argparse.Action:
8484
action = SingleStoreAction(**kwargs)

0 commit comments

Comments
 (0)