sqlspec 0.10.0__py3-none-any.whl → 0.10.1__py3-none-any.whl
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.
Potentially problematic release.
This version of sqlspec might be problematic. Click here for more details.
- sqlspec/_typing.py +24 -32
- {sqlspec-0.10.0.dist-info → sqlspec-0.10.1.dist-info}/METADATA +1 -1
- {sqlspec-0.10.0.dist-info → sqlspec-0.10.1.dist-info}/RECORD +6 -6
- {sqlspec-0.10.0.dist-info → sqlspec-0.10.1.dist-info}/WHEEL +0 -0
- {sqlspec-0.10.0.dist-info → sqlspec-0.10.1.dist-info}/licenses/LICENSE +0 -0
- {sqlspec-0.10.0.dist-info → sqlspec-0.10.1.dist-info}/licenses/NOTICE +0 -0
sqlspec/_typing.py
CHANGED
|
@@ -6,15 +6,7 @@ This is used to ensure compatibility when one or more of the libraries are insta
|
|
|
6
6
|
|
|
7
7
|
from collections.abc import Iterable, Mapping
|
|
8
8
|
from enum import Enum
|
|
9
|
-
from typing import
|
|
10
|
-
Any,
|
|
11
|
-
ClassVar,
|
|
12
|
-
Final,
|
|
13
|
-
Protocol,
|
|
14
|
-
Union,
|
|
15
|
-
cast,
|
|
16
|
-
runtime_checkable,
|
|
17
|
-
)
|
|
9
|
+
from typing import Any, ClassVar, Final, Optional, Protocol, Union, cast, runtime_checkable
|
|
18
10
|
|
|
19
11
|
from typing_extensions import Literal, TypeVar, dataclass_transform
|
|
20
12
|
|
|
@@ -50,9 +42,9 @@ except ImportError:
|
|
|
50
42
|
self,
|
|
51
43
|
/,
|
|
52
44
|
*,
|
|
53
|
-
include:
|
|
54
|
-
exclude:
|
|
55
|
-
context:
|
|
45
|
+
include: Optional[Any] = None,
|
|
46
|
+
exclude: Optional[Any] = None,
|
|
47
|
+
context: Optional[Any] = None,
|
|
56
48
|
by_alias: bool = False,
|
|
57
49
|
exclude_unset: bool = False,
|
|
58
50
|
exclude_defaults: bool = False,
|
|
@@ -68,9 +60,9 @@ except ImportError:
|
|
|
68
60
|
self,
|
|
69
61
|
/,
|
|
70
62
|
*,
|
|
71
|
-
include:
|
|
72
|
-
exclude:
|
|
73
|
-
context:
|
|
63
|
+
include: Optional[Any] = None,
|
|
64
|
+
exclude: Optional[Any] = None,
|
|
65
|
+
context: Optional[Any] = None,
|
|
74
66
|
by_alias: bool = False,
|
|
75
67
|
exclude_unset: bool = False,
|
|
76
68
|
exclude_defaults: bool = False,
|
|
@@ -90,9 +82,9 @@ except ImportError:
|
|
|
90
82
|
self,
|
|
91
83
|
type: Any, # noqa: A002
|
|
92
84
|
*,
|
|
93
|
-
config:
|
|
85
|
+
config: Optional[Any] = None,
|
|
94
86
|
_parent_depth: int = 2,
|
|
95
|
-
module:
|
|
87
|
+
module: Optional[str] = None,
|
|
96
88
|
) -> None:
|
|
97
89
|
"""Init"""
|
|
98
90
|
|
|
@@ -101,10 +93,10 @@ except ImportError:
|
|
|
101
93
|
object: Any,
|
|
102
94
|
/,
|
|
103
95
|
*,
|
|
104
|
-
strict:
|
|
105
|
-
from_attributes:
|
|
106
|
-
context:
|
|
107
|
-
experimental_allow_partial:
|
|
96
|
+
strict: Optional[bool] = None,
|
|
97
|
+
from_attributes: Optional[bool] = None,
|
|
98
|
+
context: Optional[dict[str, Any]] = None,
|
|
99
|
+
experimental_allow_partial: Union[bool, Literal["off", "on", "trailing-strings"]] = False,
|
|
108
100
|
) -> "T_co":
|
|
109
101
|
"""Stub"""
|
|
110
102
|
return cast("T_co", object)
|
|
@@ -136,16 +128,16 @@ except ImportError:
|
|
|
136
128
|
class Struct(Protocol): # type: ignore[no-redef]
|
|
137
129
|
"""Placeholder Implementation"""
|
|
138
130
|
|
|
139
|
-
__struct_fields__:
|
|
131
|
+
__struct_fields__: ClassVar[tuple[str, ...]]
|
|
140
132
|
|
|
141
133
|
def convert( # type: ignore[no-redef]
|
|
142
134
|
obj: Any,
|
|
143
|
-
type:
|
|
135
|
+
type: Union[Any, type[T]], # noqa: A002
|
|
144
136
|
*,
|
|
145
137
|
strict: bool = True,
|
|
146
138
|
from_attributes: bool = False,
|
|
147
|
-
dec_hook:
|
|
148
|
-
builtin_types:
|
|
139
|
+
dec_hook: Optional[Callable[[type, Any], Any]] = None,
|
|
140
|
+
builtin_types: Optional[Iterable[type]] = None,
|
|
149
141
|
str_keys: bool = False,
|
|
150
142
|
) -> "Union[T, Any]":
|
|
151
143
|
"""Placeholder implementation"""
|
|
@@ -172,10 +164,10 @@ except ImportError:
|
|
|
172
164
|
def __init__(self, backend: Any, data_as_builtins: Any) -> None:
|
|
173
165
|
"""Placeholder init"""
|
|
174
166
|
|
|
175
|
-
def create_instance(self, **kwargs: Any) ->
|
|
167
|
+
def create_instance(self, **kwargs: Any) -> T:
|
|
176
168
|
return cast("T", kwargs)
|
|
177
169
|
|
|
178
|
-
def update_instance(self, instance:
|
|
170
|
+
def update_instance(self, instance: T, **kwargs: Any) -> T:
|
|
179
171
|
"""Placeholder implementation"""
|
|
180
172
|
return cast("T", kwargs)
|
|
181
173
|
|
|
@@ -214,15 +206,15 @@ except ImportError:
|
|
|
214
206
|
def from_arrays(
|
|
215
207
|
self,
|
|
216
208
|
arrays: list[Any],
|
|
217
|
-
names:
|
|
218
|
-
schema:
|
|
219
|
-
metadata:
|
|
209
|
+
names: Optional[list[str]] = None,
|
|
210
|
+
schema: Optional[Any] = None,
|
|
211
|
+
metadata: Optional[Mapping[str, Any]] = None,
|
|
220
212
|
) -> Any: ...
|
|
221
213
|
def from_pydict(
|
|
222
214
|
self,
|
|
223
215
|
mapping: dict[str, Any],
|
|
224
|
-
schema:
|
|
225
|
-
metadata:
|
|
216
|
+
schema: Optional[Any] = None,
|
|
217
|
+
metadata: Optional[Mapping[str, Any]] = None,
|
|
226
218
|
) -> Any: ...
|
|
227
219
|
def from_batches(self, batches: Iterable[Any], schema: Optional[Any] = None) -> Any: ...
|
|
228
220
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
sqlspec/__init__.py,sha256=Dl1QOZAK21--ORQcRn15n4YPFklFMe2-Lb7TWWq_WQE,338
|
|
2
2
|
sqlspec/__metadata__.py,sha256=hNP3wXvtk8fQVPKGjRLpZ9mP-gaPJqzrmgm3UqpDIXQ,460
|
|
3
3
|
sqlspec/_serialization.py,sha256=tSwWwFImlYviC6ARdXRz0Bp4QXbCdc8cKGgZr33OglY,2657
|
|
4
|
-
sqlspec/_typing.py,sha256=
|
|
4
|
+
sqlspec/_typing.py,sha256=a8QTy3oqdUfjrA6Iu4PxfQcUf9DuG9pZcalcevM_xIU,7037
|
|
5
5
|
sqlspec/base.py,sha256=SQDE27igKL6OVQ-D9lz3oNrEZz4vWggRSuE4SDXJSbs,32789
|
|
6
6
|
sqlspec/exceptions.py,sha256=WnA56CdDSSdOjA5UE4jnfXXtrfClgwjCRxT-id0eVAo,4302
|
|
7
7
|
sqlspec/filters.py,sha256=Gqwt4VQ7e8ffphkuR-jBfqW4m0OWGGUPiYWyEQ0Xn7M,3620
|
|
@@ -60,8 +60,8 @@ sqlspec/utils/fixtures.py,sha256=ni51rAuen6S1wuSi1kUwn6Qh25B-XrewPEsjV8G4gQ0,202
|
|
|
60
60
|
sqlspec/utils/module_loader.py,sha256=tmMy9JcTTQETcwT8Wt8adCIuqr4zinQnPbCiBJ6JTSQ,2703
|
|
61
61
|
sqlspec/utils/sync_tools.py,sha256=xxHZ-5rnTrPEUNr7gxQUVvJd0NGJeO_MgisR8X7sI3c,10425
|
|
62
62
|
sqlspec/utils/text.py,sha256=Ya-fWBcfkQRhguNs7MNFIYtAUiArBo62w8sRPHavMWM,1476
|
|
63
|
-
sqlspec-0.10.
|
|
64
|
-
sqlspec-0.10.
|
|
65
|
-
sqlspec-0.10.
|
|
66
|
-
sqlspec-0.10.
|
|
67
|
-
sqlspec-0.10.
|
|
63
|
+
sqlspec-0.10.1.dist-info/METADATA,sha256=O8m1zio3ZUnEejLUKIawOrQ9KxIJskq2fQ6oR0m_Zd8,14034
|
|
64
|
+
sqlspec-0.10.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
65
|
+
sqlspec-0.10.1.dist-info/licenses/LICENSE,sha256=MdujfZ6l5HuLz4mElxlu049itenOR3gnhN1_Nd3nVcM,1078
|
|
66
|
+
sqlspec-0.10.1.dist-info/licenses/NOTICE,sha256=Lyir8ozXWov7CyYS4huVaOCNrtgL17P-bNV-5daLntQ,1634
|
|
67
|
+
sqlspec-0.10.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|