Skip to content

Commit

Permalink
import from collections.abc instead of from typing
Browse files Browse the repository at this point in the history
  • Loading branch information
TaiSakuma committed Oct 17, 2023
1 parent 234a0a8 commit cbcbf35
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/nextline_schedule/auto/machine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
from collections.abc import AsyncIterator
from logging import getLogger
from typing import AsyncIterator, Protocol
from typing import Protocol

from nextline.utils import pubsub

Expand Down
3 changes: 2 additions & 1 deletion src/nextline_schedule/plugin.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from collections.abc import Mapping, MutableMapping
from pathlib import Path
from typing import Mapping, MutableMapping, Optional
from typing import Optional

from apluggy import asynccontextmanager
from dynaconf import Dynaconf, Validator
Expand Down
2 changes: 1 addition & 1 deletion src/nextline_schedule/schema/subscription.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import AsyncIterator
from collections.abc import AsyncIterator

import strawberry
from strawberry.types import Info
Expand Down
2 changes: 1 addition & 1 deletion tests/schema/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import asyncio
from typing import AsyncIterator
from collections.abc import AsyncIterator

import pytest
from async_asgi_testclient import TestClient
Expand Down
3 changes: 2 additions & 1 deletion tests/test_scratch.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import asyncio
import sys
from typing import AsyncIterable, AsyncIterator, Iterable, TypeVar
from collections.abc import AsyncIterable, AsyncIterator, Iterable
from typing import TypeVar

import pytest

Expand Down

0 comments on commit cbcbf35

Please sign in to comment.