Skip to content

Commit b7d3f9a

Browse files
authored
Merge pull request #20 from bryanforbes/improve-sql-visitors
Improve `sql.visitors` typings
2 parents 7c1d933 + 8769139 commit b7d3f9a

File tree

1 file changed

+39
-37
lines changed

1 file changed

+39
-37
lines changed

sqlalchemy-stubs/sql/visitors.pyi

Lines changed: 39 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ from typing import List
77
from typing import Optional
88
from typing import TypeVar
99

10+
from ..util import langhelpers
11+
1012
_ET = TypeVar("_ET", bound=ExternalTraversal)
1113
_T = TypeVar("_T")
1214

@@ -32,45 +34,45 @@ class InternalTraversal(object, metaclass=_InternalTraversalType):
3234
internal_dispatch: Any,
3335
generate_dispatcher_name: Any,
3436
) -> Any: ...
35-
dp_has_cache_key: int = ...
36-
dp_has_cache_key_list: int = ...
37-
dp_clauseelement: int = ...
38-
dp_fromclause_canonical_column_collection: int = ...
39-
dp_clauseelement_tuples: int = ...
40-
dp_clauseelement_list: int = ...
41-
dp_clauseelement_tuple: int = ...
42-
dp_executable_options: int = ...
43-
dp_fromclause_ordered_set: int = ...
44-
dp_string: int = ...
45-
dp_string_list: int = ...
46-
dp_anon_name: int = ...
47-
dp_boolean: int = ...
48-
dp_operator: int = ...
49-
dp_type: int = ...
50-
dp_plain_dict: int = ...
51-
dp_dialect_options: int = ...
52-
dp_string_clauseelement_dict: int = ...
53-
dp_string_multi_dict: int = ...
54-
dp_annotations_key: int = ...
55-
dp_plain_obj: int = ...
56-
dp_named_ddl_element: int = ...
57-
dp_prefix_sequence: int = ...
58-
dp_table_hint_list: int = ...
59-
dp_setup_join_tuple: int = ...
60-
dp_statement_hint_list: int = ...
61-
dp_unknown_structure: int = ...
62-
dp_dml_ordered_values: int = ...
63-
dp_dml_values: int = ...
64-
dp_dml_multi_values: int = ...
65-
dp_propagate_attrs: int = ...
37+
dp_has_cache_key: langhelpers._symbol = ...
38+
dp_has_cache_key_list: langhelpers._symbol = ...
39+
dp_clauseelement: langhelpers._symbol = ...
40+
dp_fromclause_canonical_column_collection: langhelpers._symbol = ...
41+
dp_clauseelement_tuples: langhelpers._symbol = ...
42+
dp_clauseelement_list: langhelpers._symbol = ...
43+
dp_clauseelement_tuple: langhelpers._symbol = ...
44+
dp_executable_options: langhelpers._symbol = ...
45+
dp_fromclause_ordered_set: langhelpers._symbol = ...
46+
dp_string: langhelpers._symbol = ...
47+
dp_string_list: langhelpers._symbol = ...
48+
dp_anon_name: langhelpers._symbol = ...
49+
dp_boolean: langhelpers._symbol = ...
50+
dp_operator: langhelpers._symbol = ...
51+
dp_type: langhelpers._symbol = ...
52+
dp_plain_dict: langhelpers._symbol = ...
53+
dp_dialect_options: langhelpers._symbol = ...
54+
dp_string_clauseelement_dict: langhelpers._symbol = ...
55+
dp_string_multi_dict: langhelpers._symbol = ...
56+
dp_annotations_key: langhelpers._symbol = ...
57+
dp_plain_obj: langhelpers._symbol = ...
58+
dp_named_ddl_element: langhelpers._symbol = ...
59+
dp_prefix_sequence: langhelpers._symbol = ...
60+
dp_table_hint_list: langhelpers._symbol = ...
61+
dp_setup_join_tuple: langhelpers._symbol = ...
62+
dp_statement_hint_list: langhelpers._symbol = ...
63+
dp_unknown_structure: langhelpers._symbol = ...
64+
dp_dml_ordered_values: langhelpers._symbol = ...
65+
dp_dml_values: langhelpers._symbol = ...
66+
dp_dml_multi_values: langhelpers._symbol = ...
67+
dp_propagate_attrs: langhelpers._symbol = ...
6668

6769
class ExtendedInternalTraversal(InternalTraversal):
68-
dp_ignore: int = ...
69-
dp_inspectable: int = ...
70-
dp_multi: int = ...
71-
dp_multi_list: int = ...
72-
dp_has_cache_key_tuples: int = ...
73-
dp_inspectable_list: int = ...
70+
dp_ignore: langhelpers._symbol = ...
71+
dp_inspectable: langhelpers._symbol = ...
72+
dp_multi: langhelpers._symbol = ...
73+
dp_multi_list: langhelpers._symbol = ...
74+
dp_has_cache_key_tuples: langhelpers._symbol = ...
75+
dp_inspectable_list: langhelpers._symbol = ...
7476

7577
class ExternalTraversal:
7678
__traverse_options__: Any = ...

0 commit comments

Comments
 (0)