ddsql 0.0.1__tar.gz → 0.0.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ddsql
3
- Version: 0.0.1
3
+ Version: 0.0.2
4
4
  Summary: SQL Query Library
5
5
  License: MIT
6
6
  License-File: LICENSE
@@ -1,7 +1,7 @@
1
1
  from __future__ import annotations
2
2
 
3
3
  from abc import ABC
4
- from typing import TYPE_CHECKING, Any, Dict
4
+ from typing import TYPE_CHECKING, Any, Dict, TypeVar
5
5
 
6
6
  from ddutils.annotation_helpers import is_subclass
7
7
  from ddutils.class_helpers import classproperty
@@ -11,6 +11,8 @@ from ddsql.adapter import Adapter
11
11
  if TYPE_CHECKING:
12
12
  from ddsql.query import Query
13
13
 
14
+ T = TypeVar('T', bound='SQLBase')
15
+
14
16
 
15
17
  class SQLBase(ABC):
16
18
  """
@@ -48,7 +50,7 @@ class SQLBase(ABC):
48
50
  self.query = query
49
51
  self.params = {}
50
52
 
51
- def with_params(self, **params: Any) -> SQLBase:
53
+ def with_params(self: T, **params: Any) -> T:
52
54
  self.params = {**self.params, **params}
53
55
  return self
54
56
 
@@ -1,7 +1,7 @@
1
1
  [tool.poetry]
2
2
  name = "ddsql"
3
3
  description = "SQL Query Library"
4
- version = "0.0.1"
4
+ version = "0.0.2"
5
5
  authors = ["davyddd"]
6
6
  license = "MIT"
7
7
  repository = "https://github.com/davyddd/ddsql"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes