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
Alex Waygood
7ccbbdb30a
stdlib: Improve many __iter__ and constructor methods ( #7112 )
2022-02-02 19:14:57 +01:00
Shantanu
b88a6f19cd
Upgrade black version ( #7089 )
2022-01-30 16:27:06 -08:00
Alex Waygood
a40d79a4e6
Use lowercase type everywhere ( #6853 )
2022-01-08 16:09:29 +01:00
Alex Waygood
505ea72641
Never explicitly inherit from object in Python 3-only stubs ( #6777 )
2022-01-02 07:24:48 +01:00
Sebastian Rittau
3fb2bcd4c1
Restore stubtest 0.930 ( #6663 )
2021-12-22 20:18:19 -08:00
Akuli
c8c5519fa6
sqlite3: stubtest fixes ( #6441 )
2021-11-29 11:07:20 -08:00
Pavel Karateev
73d598eaa8
Add sqlite_errorcode and sqlite_errorname to sqlite3.Error in Python 3.11 ( #6425 )
2021-11-28 13:52:32 +02:00
Nikita Sobolev
cb64e814a1
Adds missing constants to sqlite3.dbapi2 ( #6279 )
2021-11-12 12:14:37 +01:00
Akuli
994b69ef8f
Use lowercase tuple where possible ( #6170 )
2021-10-14 17:18:19 -07:00
David Robertson
498f1aa41d
Mark sqlite3.Cursor.rowcount as an int ( #6150 )
2021-10-11 14:54:30 +02:00
Akuli
ce11072dbe
Big diff: use lower-case list and dict ( #5888 )
2021-08-08 09:26:35 -07:00
Akuli
ee487304d7
Big diff: Use new "|" union syntax ( #5872 )
2021-08-08 11:05:21 +02:00
Anton Grübel
d68701c0ec
Use _typeshed.Self with __enter__ ( #5723 )
...
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
Co-authored-by: Akuli <akuviljanen17@gmail.com >
2021-07-04 21:10:01 +03:00
Sebastian Rittau
f0bf6eebbd
AnyStr cleanup ( #5487 )
...
* Replace all uses of StrPath, BytesPath, and AnyPath in Python 2 stubs.
* Add StrOrBytesPath as preferred alias for AnyPath.
* Replace all remaining AnyPath instances with StrOrBytesPath.
* Mark AnyPath as obsolete.
Part of #5470
2021-05-17 20:45:48 +02:00
Sebastian Rittau
e5abd08f93
Replace PathLike unions with aliases from _typeshed ( #5467 )
...
Standardize on 'from os import PathLike'
2021-05-16 21:38:00 +02:00
Sebastian Rittau
6a9c89e928
Replace 'Text' with 'str' in py3 stdlib ( #5466 )
2021-05-16 07:10:48 -07:00
Akuli
17dcea4a68
Akuli and srittau: Remove Python 2 branches from Python 3 stubs ( #5461 )
...
* run script and do some manual changes (Akuli)
* do the whole thing manually (srittau)
* merge changes (Akuli)
Co-authored-by: Sebastian Rittau <srittau@rittau.biz >
2021-05-15 15:33:39 +03:00
Shantanu
ae60825818
sqlite3: fix argument names, positional only ( #5300 )
...
Co-authored-by: hauntsaninja <>
2021-05-02 12:32:19 -07:00
hatal175
a98e3e3ff9
Replace some type with Type[] ( #5254 )
...
* Replace some type with Type[]
* Change aggregate_class to be Callable
2021-04-26 07:31:16 -07:00
hatal175
fbf21995e3
Various stubtest fixes ( #5230 )
2021-04-18 09:30:00 -07:00
Ivan Levkivskyi
16ae4c6120
Re-organize directory structure ( #4971 )
...
See discussion in #2491
Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com >
2021-01-27 12:00:39 +00:00