Skip to content

Commit

Permalink
Handle some lint issues related to typing imports (#274)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus authored May 13, 2024
1 parent 5e32726 commit 5fb7e01
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 6 deletions.
3 changes: 2 additions & 1 deletion snitun/client/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@
from __future__ import annotations

import asyncio
from collections.abc import Coroutine
from contextlib import suppress
import ipaddress
import logging
from typing import Any, Coroutine
from typing import Any

from ..exceptions import MultiplexerTransportClose, MultiplexerTransportError
from ..multiplexer.channel import MultiplexerChannel
Expand Down
2 changes: 1 addition & 1 deletion snitun/server/peer.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
from __future__ import annotations

import asyncio
from collections.abc import Coroutine
from datetime import datetime, timezone
import hashlib
import logging
import os
from typing import Coroutine

import async_timeout

Expand Down
2 changes: 1 addition & 1 deletion snitun/server/peer_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
from __future__ import annotations

import asyncio
from collections.abc import Callable
from datetime import datetime, timezone
from enum import Enum
import json
import logging
from typing import Callable

import async_timeout
from cryptography.fernet import Fernet, InvalidToken, MultiFernet
Expand Down
2 changes: 1 addition & 1 deletion snitun/server/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from __future__ import annotations

import asyncio
from collections.abc import Awaitable, Iterable
from contextlib import suppress
from itertools import cycle
import logging
Expand All @@ -12,7 +13,6 @@
import signal
import socket
from threading import Thread
from typing import Awaitable, Iterable

import async_timeout
import attr
Expand Down
2 changes: 1 addition & 1 deletion snitun/server/sni.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
import logging

from ..exceptions import ParseSNIError, ParseSNIIncompleteError
from ..utils.server import MAX_READ_SIZE, MAX_BUFFER_SIZE
from ..utils.server import MAX_BUFFER_SIZE, MAX_READ_SIZE

_LOGGER = logging.getLogger(__name__)

Expand Down
3 changes: 2 additions & 1 deletion snitun/utils/aiohttp_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
from __future__ import annotations

import asyncio
from collections.abc import Coroutine
from contextlib import suppress
import logging
import socket
import ssl
from typing import Any, Coroutine
from typing import Any

from aiohttp.web import AppRunner, SockSite
import async_timeout
Expand Down

0 comments on commit 5fb7e01

Please sign in to comment.