Stephen Morton
4944f1b12c
add sqlite3.dump ( #13085 )
2024-11-25 18:14:45 +01:00
Stephen Morton
0fb3a092c7
Miscellaneous type_check_only annotations ( #13058 )
2024-11-21 08:41:38 +00:00
Oleh Prypin
b2f68ec2fe
Use MaybeNone (alias to Any) when applicable ( #12855 )
2024-10-18 14:07:52 -07:00
Stephen Morton
816b47c231
remove unneeded Interator base class from sqlite3.Cursor ( #12813 )
2024-10-15 11:25:21 -07:00
Stephen Morton
39650b43b5
add _sqlite3 module ( #11174 )
...
This aligns with the implementation while giving greater fidelity
to runtime naming and inheritance
Related to https://github.com/python/typeshed/issues/3968 and https://github.com/python/typeshed/issues/11141
2024-10-04 17:28:26 -07:00
Max Muoto
442c7d36af
sqlite3 removals for 3.14 ( #12492 )
2024-08-10 23:10:13 +03:00
Max Muoto
0ffa2c5597
Use Final for sqlite constants ( #12448 )
2024-07-28 12:02:29 +02:00
Amin Alaee
321c0ce75e
math, mimetypes, mmap, multiprocessing, sqlite: Python 3.13 updates (#12062 )
2024-05-30 14:56:22 +02:00
shawnbrown
ea6dac40d4
sqlite3: handle return-type with factory argument. ( #11571 )
2024-03-13 09:14:08 +01:00
Shantanu
470a13ab09
Use PEP 570 syntax in stdlib ( #11250 )
2024-03-09 14:50:16 -08:00
Thanos
2e2c6fca8b
Update sqlite/dbapi2.pyi to include new autocommit parameters for 3.12+. ( #11485 )
2024-02-28 05:29:31 -08:00
Sebastian Rittau
53a8193d64
Update typing_extensions imports in stdlib ( #11244 )
...
Co-authored-by: AlexWaygood <alex.waygood@gmail.com >
2024-01-05 08:15:19 -08:00
Sebastian Rittau
23604858a6
Remove Python 3.7 branches ( #11238 )
2024-01-05 11:39:39 +01:00
Jelle Zijlstra
4deef7550f
stdlib: Fix more signatures with unrepresentable defaults ( #11007 )
2023-11-09 18:20:09 -08:00
Jelle Zijlstra
d9311f946e
stdlib: fix signatures for some functions with unrepresentable defaults ( #11000 )
...
Found with python/mypy#16433
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com >
2023-11-09 08:14:36 -08:00
Edgar Handal
374317a242
sqlite3: add Connection arg to cursorClass ( #10645 )
2023-09-01 13:40:50 +02:00
Nikita Sobolev
4a643318ea
sqlite3 updates for py312 (#10469 )
2023-07-17 12:44:49 +01:00
Nikita Sobolev
17c0421c29
Adds py3.12 constants to sqlite3 ( #10453 )
2023-07-13 16:49:34 +01:00
Alex Waygood
81b8211d0e
Revert "Remove un-needed __hash__ methods from stdlib ( #8465 )" ( #10426 )
...
Reverts https://github.com/python/typeshed/pull/8465
Fixes https://github.com/python/typeshed/issues/10424
Closes https://github.com/python/typeshed/pull/10425
https://github.com/python/typeshed/pull/8465 caused regressions: see https://github.com/python/typeshed/issues/10424 and https://github.com/python/mypy/issues/13800 . Since it didn't fix any known problems (just some stylistic nits that we had), let's just revert the PR.
2023-07-09 08:43:32 -07:00
Alex Waygood
e816acffdd
Avoid unnecessary forward refs in class definitions ( #10124 )
2023-05-01 07:50:50 -07:00
Alex Waygood
dd2818a41d
Stdlib: add container default values ( #9909 )
2023-03-21 09:12:34 +01:00
Alex Waygood
257e287fec
Stdlib: correct many parameter names ( #9815 )
2023-03-04 09:53:12 +00:00
Alex Waygood
9ed39d8796
Use typing_extensions.Self in the stdlib ( #9694 )
2023-02-09 09:12:13 +00:00
Alex Waygood
53747b264e
Stdlib: add 'obvious' default values ( #9688 )
2023-02-07 13:00:40 +01:00
Alex Waygood
1d7dda7fa1
stdlib: Add defaults for positional-only parameters ( #9655 )
2023-02-01 21:44:08 +00:00
Alex Waygood
33a62ae42d
Add more defaults to the stdlib ( #9606 )
...
Continuing work towards #8988 .
The first five commits were created using stubdefaulter on various Python versions; the following commits were all created manually by me to fix various problems. The main things this adds that weren't present in #9501 are:
- Defaults in Windows-only modules and Windows-only branches (because I'm running a Windows machine)
- Defaults in non-py311 branches
- Defaults for float parameters
- Defaults for overloads
2023-01-29 01:51:23 +00:00
Jelle Zijlstra
ddfaca3200
stdlib: add argument default values ( #9501 )
2023-01-18 09:37:34 +01:00
Avasam
c70d303985
Audit stdlib object annotations ( #9519 )
2023-01-17 15:40:00 +00:00
Nikita Sobolev
0f33721c52
Remove sqlite3/dbapi2.pyi from pyright excludelist ( #9148 )
2022-11-11 12:00:19 +00:00
Jelle Zijlstra
6639e2e14c
sqlite3: Blob.write accepts buffer ( #9097 )
2022-11-06 21:06:55 -08:00
shawnbrown
266aa3b6ca
sqlite3: allow passing None for the func parameter of create_function ( #8728 )
2022-09-12 12:47:54 +03:00
Alex Waygood
1ec57121e3
Unpin stubtest from 3.10.5 ( #8523 )
2022-08-12 10:01:26 +02:00
Nikita Sobolev
64bc0590a6
Remove un-needed __hash__ methods from stdlib ( #8465 )
2022-08-06 14:55:27 +01:00
Alex Waygood
fdeb216547
Remove or move several TypeAlias declarations ( #8444 )
2022-07-30 15:28:52 +01:00
Sebastian Rittau
91fd79c158
Updates for Python 3.11.0b4 ( #8288 )
2022-07-13 13:10:20 +02:00
Alex Waygood
edc0ecd857
Remove Python 3.6 branches from typeshed ( #8269 )
2022-07-11 10:55:17 +02:00
Lefteris Karapetsas
01efba913f
dbapi2 set_progress_handler should return integer ( #8109 )
...
dbapi2 set_progress_handler callback should return an int according to the
stdlib documentation: https://docs.python.org/3/library/sqlite3.html#sqlite3.Connection.set_progress_handler
Fixes #8105
2022-06-20 13:42:58 +02:00
Kyle Altendorf
a750a42c65
Remove Generic from sqlite3.Row ( #8036 )
...
Introduced in https://github.com/python/typeshed/pull/7641 . Removal discussed at https://github.com/python/typeshed/issues/8027 .
2022-06-11 06:53:22 -07:00
Jelle Zijlstra
a01f98c361
sqlite3.Blob: fix stubtest errors ( #7858 )
2022-05-17 19:50:19 -07:00
Jukka Lehtosalo
21a81c6575
sqlite3: Avoid optional type for 'description' ( #7842 )
...
Use the `| Any` trick instead, since it seems that in a lot of
code the value can be predicted to be non-`None` (if a query
has been executed previously, I think).
The docs don't mention the possibility of this being `None`, so
it seems likely that a lot of code doesn't check for it:
https://docs.python.org/3/library/sqlite3.html#sqlite3.Cursor.description
2022-05-16 14:54:15 +02:00
Jelle Zijlstra
e6623754e9
sqlite: Blob now uses ints in getitem/setitem ( #7754 )
...
I just merged python/cpython#92020 which implemented this change (thanks @erlend-aasland!).
2022-04-30 09:15:03 -06:00
Jelle Zijlstra
125f9b4275
sqlite3: Add sequence methods to Blob ( #7684 )
...
python/cppython#91599
2022-04-25 20:17:09 -07:00
Alex Waygood
3930d8d12a
Make several type aliases private ( #7661 )
2022-04-18 22:19:16 +01:00
Shantanu
435f758019
sqlite3: add py311 constants ( #7654 )
...
bpo-24139
2022-04-16 22:08:42 -07:00
Jelle Zijlstra
b0611bc031
Improve sqlite3 types ( #7641 )
...
Read through the code in CPython and made the types more precise
where possible.
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2022-04-16 11:20:11 -07:00
Jelle Zijlstra
d802e65f67
sqlite3: add 3.11 additions ( #7625 )
...
- Blob from python/cpython#30680 (and anticipating that python/cpython#91550 will be merged)
- Aggregate window functions from python/cpython#20903
- Serialize/deserialize from python/cpython#26728
- Limit setting from python/cpython#28463
2022-04-16 16:09:26 +02:00
Alex Waygood
da3e69d093
stdlib: Improve a bunch of __(a)exit__ methods ( #7571 )
2022-04-01 08:05:25 +02:00
Shantanu
823592e100
Update stubtest for final checking ( #7312 )
...
Co-authored-by: hauntsaninja <>
2022-02-19 18:53:15 -08:00
Alex Waygood
3567aaa93f
Fix positional-only differences in sqlite3 ( #7222 )
2022-02-15 13:01:26 -08:00
Alex Waygood
2878050ffc
Add @final to several stdlib classes that cannot be subclassed at runtime ( #7213 )
2022-02-14 14:46:30 -08:00