Skip to content

Commit

Permalink
Prefer relative imports within the module
Browse files Browse the repository at this point in the history
  • Loading branch information
suricactus committed Jul 28, 2023
1 parent cd2be9c commit 1ac0874
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ More detailed documentation can be found [here](https://docs.qfield.org/referenc
## Module usage

```python
from qfieldcloud_sdk import sdk
from import sdk

client = sdk.Client(url="https://app.qfield.cloud/api/v1/")
client.login(
Expand Down
2 changes: 1 addition & 1 deletion qfieldcloud_sdk/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from qfieldcloud_sdk.cli import cli
from .cli import cli

if __name__ == "__main__":
cli()
4 changes: 2 additions & 2 deletions qfieldcloud_sdk/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@

import click

from qfieldcloud_sdk import sdk
from qfieldcloud_sdk.utils import log, print_json
from . import sdk
from .utils import log, print_json

QFIELDCLOUD_DEFAULT_URL = "https://app.qfield.cloud/api/v1/"

Expand Down
4 changes: 2 additions & 2 deletions qfieldcloud_sdk/sdk.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
import urllib3
from requests.adapters import HTTPAdapter, Retry

from qfieldcloud_sdk.interfaces import QfcException, QfcRequest, QfcRequestException
from qfieldcloud_sdk.utils import get_numeric_params, log
from .interfaces import QfcException, QfcRequest, QfcRequestException
from .utils import get_numeric_params, log

logger = logging.getLogger(__file__)

Expand Down

0 comments on commit 1ac0874

Please sign in to comment.