@@ -237,11 +237,6 @@ class _AnyParamAggregateProtocol(Protocol):
237237 def step (self ) -> Callable [..., object ]: ...
238238 def finalize (self ) -> _SqliteData : ...
239239
240- @type_check_only
241- class _AnyArgsAggregateProtocol (Protocol ):
242- def step (self , * args : _SqliteData ) -> object : ...
243- def finalize (self ) -> _SqliteData : ...
244-
245240@type_check_only
246241class _SingleParamWindowAggregateClass (Protocol [_SQLType_contra ]):
247242 def step (self , param : _SQLType_contra , / ) -> object : ...
@@ -258,13 +253,6 @@ class _AnyParamWindowAggregateClass(Protocol):
258253 def value (self ) -> _SqliteData : ...
259254 def finalize (self ) -> _SqliteData : ...
260255
261- @type_check_only
262- class _AnyArgsWindowAggregateClass (Protocol ):
263- def step (self , * args : _SqliteData ) -> object : ...
264- def inverse (self , * args : _SqliteData ) -> object : ...
265- def value (self ) -> _SqliteData : ...
266- def finalize (self ) -> _SqliteData : ...
267-
268256# These classes are implemented in the C module _sqlite3. At runtime, they're imported
269257# from there into sqlite3.dbapi2 and from that module to here. However, they
270258# consider themselves to live in the sqlite3.* namespace, so we'll define them here.
@@ -354,10 +342,6 @@ class Connection:
354342 self , name : str , n_arg : Literal [1 ], aggregate_class : Callable [[], _SingleParamAggregateProtocol ]
355343 ) -> None : ...
356344 @overload
357- def create_aggregate (
358- self , name : str , n_arg : Literal [- 1 ], aggregate_class : Callable [[], _AnyArgsAggregateProtocol ]
359- ) -> None : ...
360- @overload
361345 def create_aggregate (self , name : str , n_arg : int , aggregate_class : Callable [[], _AnyParamAggregateProtocol ]) -> None : ...
362346
363347 if sys .version_info >= (3 , 11 ):
@@ -372,14 +356,6 @@ class Connection:
372356 / ,
373357 ) -> None : ...
374358 @overload
375- def create_window_function (
376- self ,
377- name : str ,
378- num_params : Literal [- 1 ],
379- aggregate_class : Callable [[], _AnyArgsWindowAggregateClass ] | None ,
380- / ,
381- ) -> None : ...
382- @overload
383359 def create_window_function (
384360 self , name : str , num_params : int , aggregate_class : Callable [[], _AnyParamWindowAggregateClass ] | None , /
385361 ) -> None : ...
0 commit comments