Skip to content

Commit

Permalink
Import Self from typing
Browse files Browse the repository at this point in the history
  • Loading branch information
piotro888 committed Feb 11, 2024
1 parent c692d7d commit 6d75a29
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
3 changes: 1 addition & 2 deletions stubs/amaranth/hdl/dsl.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ This type stub file was generated by pyright.
"""

from contextlib import _GeneratorContextManager, contextmanager
from typing import Callable, ContextManager, Iterator, NoReturn, OrderedDict, ParamSpec, TypeVar, Optional
from typing_extensions import Self
from typing import Callable, ContextManager, Iterator, NoReturn, OrderedDict, ParamSpec, TypeVar, Optional, Self
from transactron.utils import HasElaborate
from .ast import *
from .ast import Flattenable
Expand Down
3 changes: 1 addition & 2 deletions stubs/amaranth/lib/data.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ This type stub file was generated by pyright.

from abc import ABCMeta, abstractmethod
from collections.abc import Iterator, Mapping
from typing import TypeVar, Generic
from typing_extensions import Self
from typing import TypeVar, Generic, Self
from amaranth.hdl import *
from amaranth.hdl.ast import Assign, ShapeCastable, ValueCastable
from transactron.utils._typing import ShapeLike, ValueLike
Expand Down
3 changes: 1 addition & 2 deletions stubs/amaranth/lib/enum.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ This type stub file was generated by pyright.
"""

import enum as py_enum
from typing import Generic, Optional, TypeVar, overload
from typing_extensions import Self
from typing import Generic, Optional, TypeVar, Self, overload
from amaranth import *
from ..hdl.ast import Assign, ValueCastable, ShapeCastable, ValueLike

Expand Down
2 changes: 1 addition & 1 deletion transactron/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
Tuple,
TypeVar,
Protocol,
Self,
runtime_checkable,
)
from os import environ
from graphlib import TopologicalSorter
from typing_extensions import Self
from dataclasses import dataclass, replace
from amaranth import *
from amaranth import tracer
Expand Down

0 comments on commit 6d75a29

Please sign in to comment.