Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure typing works with Python 3.8 #167

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/lint_type_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/cache@v3
with:
path: /home/runner/.local
key: dotlocal-3.11-${{ hashFiles('.github/workflows') }}
key: dotlocal-3.8-${{ hashFiles('.github/workflows') }}

- name: Install poetry
run: |
Expand All @@ -29,7 +29,7 @@ jobs:
- name: Install Python + Retrieve Poetry dependencies from cache
uses: actions/setup-python@v4
with:
python-version: "3.11"
python-version: "3.8"
cache: "poetry"

- name: Display Python version
Expand Down
4 changes: 2 additions & 2 deletions xbridge_cli/bridge/transfer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
"""CLI command for setting up a bridge."""

from typing import Any, Dict, cast
from typing import Any, Dict, Union, cast

import click
from xrpl.clients import JsonRpcClient
Expand Down Expand Up @@ -109,7 +109,7 @@ def _submit_tx(
def send_transfer(
bridge: str,
from_locking: bool,
amount: int | float,
amount: Union[int, float],
from_account: str,
to_account: str,
close_ledgers: bool = True,
Expand Down
Loading