Skip to content

Commit 0d205b0

Browse files
authored
Merge pull request #150 from opsmill/pog-pyproject-project-section
Add [project] section to pyproject.toml
2 parents 04d80a2 + b8285aa commit 0d205b0

File tree

15 files changed

+34
-15
lines changed

15 files changed

+34
-15
lines changed

infrahub_sdk/batch.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import asyncio
2+
from collections.abc import AsyncGenerator, Awaitable
23
from dataclasses import dataclass
3-
from typing import Any, AsyncGenerator, Awaitable, Callable, Optional
4+
from typing import Any, Callable, Optional
45

56
from .node import InfrahubNode
67

infrahub_sdk/client.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,14 @@
33
import asyncio
44
import copy
55
import logging
6+
from collections.abc import Coroutine, MutableMapping
67
from functools import wraps
78
from time import sleep
89
from typing import (
910
TYPE_CHECKING,
1011
Any,
1112
Callable,
12-
Coroutine,
1313
Literal,
14-
MutableMapping,
1514
Optional,
1615
TypedDict,
1716
TypeVar,

infrahub_sdk/code_generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
from typing import Any, Mapping, Optional
1+
from collections.abc import Mapping
2+
from typing import Any, Optional
23

34
import jinja2
45

infrahub_sdk/ctl/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import asyncio
22
import logging
33
import traceback
4+
from collections.abc import Coroutine
45
from functools import wraps
56
from pathlib import Path
6-
from typing import Any, Callable, Coroutine, NoReturn, Optional, TypeVar, Union
7+
from typing import Any, Callable, NoReturn, Optional, TypeVar, Union
78

89
import pendulum
910
import typer

infrahub_sdk/exceptions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

3-
from typing import Any, Mapping, Optional
3+
from collections.abc import Mapping
4+
from typing import Any, Optional
45

56

67
class Error(Exception):

infrahub_sdk/node.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@
22

33
import ipaddress
44
import re
5+
from collections.abc import Iterable
56
from copy import copy
6-
from typing import TYPE_CHECKING, Any, Callable, Iterable, Optional, Union, get_args
7+
from typing import TYPE_CHECKING, Any, Callable, Optional, Union, get_args
78

89
from .constants import InfrahubClientMode
910
from .exceptions import (

infrahub_sdk/pytest_plugin/loader.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

3-
from typing import Any, Iterable, Optional
3+
from collections.abc import Iterable
4+
from typing import Any, Optional
45

56
import pytest
67
import yaml

infrahub_sdk/schema.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
from __future__ import annotations
22

33
from collections import defaultdict
4+
from collections.abc import MutableMapping
45
from enum import Enum
56
from pathlib import Path
6-
from typing import TYPE_CHECKING, Any, MutableMapping, Optional, TypedDict, TypeVar, Union
7+
from typing import TYPE_CHECKING, Any, Optional, TypedDict, TypeVar, Union
78
from urllib.parse import urlencode
89

910
import httpx

infrahub_sdk/topological_sort.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
from __future__ import annotations
22

3+
from collections.abc import Iterable, Mapping, Sequence
34
from itertools import chain
4-
from typing import Any, Iterable, Mapping, Sequence
5+
from typing import Any
56

67

78
class DependencyCycleExistsError(Exception):

infrahub_sdk/transfer/exporter/json.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from collections.abc import Generator
12
from contextlib import contextmanager
23
from pathlib import Path
3-
from typing import TYPE_CHECKING, Any, Generator, Optional
4+
from typing import TYPE_CHECKING, Any, Optional
45

56
import ujson
67
from rich.console import Console

0 commit comments

Comments
 (0)