Skip to content

Commit

Permalink
[Python SDK] Fix linting (#8467)
Browse files Browse the repository at this point in the history
* add newline to fix linting error

* remove newline

* poetry run isort, poetry run black
  • Loading branch information
0xmigo authored Jun 1, 2023
1 parent da31920 commit 41d03c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ecosystem/python/sdk/aptos_sdk/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from .account_address import AccountAddress
from .authenticator import Authenticator, Ed25519Authenticator, MultiAgentAuthenticator
from .bcs import Serializer
from .metadata import Metadata
from .transactions import (
EntryFunction,
MultiAgentRawTransaction,
Expand All @@ -20,7 +21,6 @@
TransactionPayload,
)
from .type_tag import StructTag, TypeTag
from .metadata import Metadata

U64_MAX = 18446744073709551615

Expand Down
2 changes: 1 addition & 1 deletion ecosystem/python/sdk/aptos_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from .account_address import AccountAddress
from .authenticator import Authenticator, Ed25519Authenticator, MultiAgentAuthenticator
from .bcs import Serializer
from .metadata import Metadata
from .transactions import (
EntryFunction,
MultiAgentRawTransaction,
Expand All @@ -20,7 +21,6 @@
TransactionPayload,
)
from .type_tag import StructTag, TypeTag
from .metadata import Metadata

U64_MAX = 18446744073709551615

Expand Down
4 changes: 2 additions & 2 deletions ecosystem/python/sdk/aptos_sdk/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
# constants
PACKAGE_NAME = "aptos-sdk"


class Metadata:
APTOS_HEADER = "x-aptos-client"

@staticmethod
def get_aptos_header_val():
version = metadata.version(PACKAGE_NAME)
return f"aptos-python-sdk/{version}"

0 comments on commit 41d03c4

Please sign in to comment.