Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
picodata
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
core
picodata
Commits
c4f98a09
Commit
c4f98a09
authored
1 year ago
by
Yaroslav Dynnikov
Committed by
Yaroslav Dynnikov
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
test: specify typing for cas python api
parent
1cfb9d75
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!547
A bunch of minor improvements
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/conftest.py
+3
-3
3 additions, 3 deletions
test/conftest.py
with
3 additions
and
3 deletions
test/conftest.py
+
3
−
3
View file @
c4f98a09
...
...
@@ -16,7 +16,7 @@ from rand.params import generate_seed
from
functools
import
reduce
from
datetime
import
datetime
from
shutil
import
rmtree
from
typing
import
Any
,
Callable
,
Literal
,
Generator
,
Iterator
,
Dict
from
typing
import
Any
,
Callable
,
Literal
,
Generator
,
Iterator
,
Dict
,
List
,
Tuple
from
itertools
import
count
from
contextlib
import
contextmanager
,
suppress
from
dataclasses
import
dataclass
,
field
...
...
@@ -520,7 +520,7 @@ class Instance:
self
,
dml_kind
:
Literal
[
"
insert
"
,
"
replace
"
,
"
delete
"
],
space
:
str
,
tuple
:
Any
,
# TODO tuple, not any
tuple
:
Tuple
|
List
,
index
:
int
|
None
=
None
,
term
:
int
|
None
=
None
,
range
:
CasRange
|
None
=
None
,
# TODO better types for bounds
...
...
@@ -926,7 +926,7 @@ class Cluster:
self
,
dml_kind
:
Literal
[
"
insert
"
,
"
replace
"
,
"
delete
"
],
space
:
str
,
tuple
:
Any
,
# TODO tuple, not any
tuple
:
Tuple
|
List
,
index
:
int
|
None
=
None
,
term
:
int
|
None
=
None
,
range
:
CasRange
|
None
=
None
,
# TODO better types
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment