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

@ -10,8 +10,9 @@ from pathlib import Path
import sqlite3
from typing import Iterator, Sequence, Optional, Dict, Union, List
from my.core import get_files, Paths, datetime_aware, Res, assert_never, LazyLogger, make_config
from my.core import get_files, Paths, datetime_aware, Res, LazyLogger, make_config
from my.core.common import unique_everseen
from my.core.compat import assert_never
from my.core.error import echain
from my.core.sqlite import sqlite_connection