@@ -298,33 +298,6 @@ def test_int64(provider):
29
8000
8
298
res = cur .execute ("SELECT * FROM data" )
299
299
assert [(1 , 1099511627776 )] == res .fetchall ()
300
300
301
- def test_type_adherence (capsys ):
302
- try :
303
- from mypy .stubtest import test_stubs , parse_options
304
- except (ImportError , ModuleNotFoundError ):
305
- # skip test if mypy not installed
306
- pytest .skip ("Cant test type stubs without mypy installed" )
307
-
308
- # run mypy stubtest tool. Equivalent to running the following the terminal
309
- """
310
- stubtest --concise libsql_experimental | \
311
- grep -v 'which is incompatible with stub argument type'
312
- """
313
- test_stubs (parse_options (["--concise" , "libsql_experimental" ]))
314
- cap = capsys .readouterr ()
315
-
316
- # this is part of error reported if is default parameter is ellipsis
317
- # `arg: type = ...` which is a nicer way to hide implementation from user
318
- # than having the more "correct" `arg: type | None = None` everywhere
319
- ellipsis_err = "which is incompatible with stub argument type"
320
-
321
- lines = cap .out .split ("\n " )
322
- lines = filter (lambda x : ellipsis_err not in x , lines ) # filter false positives from ellipsis
323
- lines = filter (lambda x : len (x ) != 0 , lines ) # filter empty lines
324
-
325
- # there will always be one error which i dont know how to get rid of
326
- # `libsql_experimental.libsql_experimental failed to find stubs`
327
- assert len (list (lines )) == 1
328
301
329
302
def connect (provider , database , isolation_level = "DEFERRED" , autocommit = - 1 ):
330
303
if provider == "libsql-remote" :
0 commit comments