Skip to content

Commit

Permalink
feat: remove 38 and 39 and set ClassVars
Browse files Browse the repository at this point in the history
  • Loading branch information
johnson2427 committed May 3, 2024
1 parent 6b8b012 commit 95bc4da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions ape_aws/client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import ClassVar
import boto3

from datetime import datetime
Expand Down Expand Up @@ -26,7 +27,7 @@ class CreateKeyModel(KeyBaseModel):
tags: list[dict[str, str]] | None = Field(default=None, alias='Tags')
multi_region: bool | None = Field(default=None, alias="MultiRegion")
origin: str = Field(alias='Origin')
ADMIN_KEY_POLICY: str = """{
ADMIN_KEY_POLICY: ClassVar[str] = """{
"Version": "2012-10-17",
"Id": "key-default-1",
"Statement": [{
Expand All @@ -37,7 +38,7 @@ class CreateKeyModel(KeyBaseModel):
"Resource": "*"
}]
}"""
USER_KEY_POLICY: str = """{
USER_KEY_POLICY: ClassVar[str] = """{
"Version": "2012-10-17",
"Id": "key-default-1",
"Statement": [{
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ write_to = "ape_aws/version.py"

[tool.black]
line-length = 100
target-version = ['py38', 'py39', 'py310', 'py311', 'py312']
target-version = ['py310', 'py311', 'py312']
include = '\.pyi?$'

[tool.pytest.ini_options]
Expand Down

0 comments on commit 95bc4da

Please sign in to comment.