general: move assert_never to my.core.compat as it's in stdlib from 3.11

rely on typing-extensions for fallback

introducing typing-extensions dependency without fallback, should be ok since it's in the top 10 of popular packages
This commit is contained in:
Dima Gerasimov 2024-08-12 15:45:59 +03:00 committed by karlicoss
parent 1317914bff
commit a7439c7846
10 changed files with 36 additions and 16 deletions

View file

@ -1,8 +1,7 @@
from dataclasses import dataclass
from typing import Any, Iterator, List, Tuple
from my.core import assert_never
from my.core.compat import NoneType
from my.core.compat import NoneType, assert_never
# TODO Popper? not sure