Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

fixing TrytesCompatible so that its no longer generic. #343

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions iota/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from itertools import chain
from math import ceil
from random import SystemRandom
from typing import Any, AnyStr, Generator, Iterable, Iterator, List, \
from typing import Any, Generator, Iterable, Iterator, List, \
MutableSequence, Optional, Type, TypeVar, Union, Dict
from warnings import warn

Expand All @@ -24,7 +24,7 @@
]

# Custom types for type hints and docstrings.
TrytesCompatible = Union[AnyStr, bytearray, 'TryteString']
TrytesCompatible = Union[str, bytes, bytearray, 'TryteString']

T = TypeVar('T', bound='TryteString')

Expand Down