Skip to content

Commit

Permalink
Ruff formatting for python 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
GDYendell committed Mar 21, 2024
1 parent 7bd4752 commit 499784e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/fastcs/backend.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
from collections import defaultdict
from collections.abc import Callable
from types import MethodType
from typing import Callable

from .attributes import AttrR, AttrW, Sender, Updater
from .exceptions import FastCSException
Expand Down
3 changes: 2 additions & 1 deletion src/fastcs/backends/epics/ioc.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
from collections.abc import Callable
from dataclasses import dataclass
from types import MethodType
from typing import Any, Callable
from typing import Any

from softioc import asyncio_dispatcher, builder, softioc
from softioc.pythonSoftIoc import RecordWrapper
Expand Down
2 changes: 1 addition & 1 deletion src/fastcs/cs_methods.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from asyncio import iscoroutinefunction
from collections.abc import Awaitable, Callable
from inspect import Signature, getdoc, signature
from typing import Awaitable, Callable

from .exceptions import FastCSException

Expand Down
3 changes: 2 additions & 1 deletion src/fastcs/datatypes.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
from __future__ import annotations

from abc import abstractmethod
from collections.abc import Awaitable, Callable
from dataclasses import dataclass
from typing import Awaitable, Callable, Generic, TypeVar
from typing import Generic, TypeVar

T = TypeVar("T", int, float, bool, str)
ATTRIBUTE_TYPES: tuple[type] = T.__constraints__ # type: ignore
Expand Down

0 comments on commit 499784e

Please sign in to comment.