abydos icon indicating copy to clipboard operation
abydos copied to clipboard

Remove Python 3.5 support

Open chrislit opened this issue 5 years ago • 1 comments

Python 3.5 support ends on 2020-09-13. At that point, support can be removed, in terms of testing & feature support.

With 3.6, new-style variable type hinting and f-strings can be used. The random.choices() workaround may be removed.

Other things to consider: Use the secrets module for RNG outside of testing.

chrislit avatar Jan 28 '20 18:01 chrislit

alphabet: Optional[Union[TCounter[str], Sequence[str], Set[str], int]] = None, -> alphabet: Optional[Union[TCounter[str], Collection[str], int]] = None,

alphabet: Optional[Union[TCounter[str], Sequence[str], Set[str], int]] = 0, -> alphabet: Optional[Union[TCounter[str], Collection[str], int]] = 0,

Other cases of Sequence[str], Set[str] in a Union

Essentially, undo 2e4b17c1

chrislit avatar Feb 10 '20 23:02 chrislit