Skip to content

Commit ba177cf

Browse files
authored
Include a Python stub file for the interrogatedb module (#4)
1 parent 28c2480 commit ba177cf

File tree

2 files changed

+181
-0
lines changed

2 files changed

+181
-0
lines changed

cmake/macros/Python.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ function(add_python_target target)
8585

8686
if(PYTHON_ARCH_INSTALL_DIR)
8787
install(TARGETS ${target} EXPORT "${export}" COMPONENT "${component}" DESTINATION "${PYTHON_ARCH_INSTALL_DIR}${slash_namespace}")
88+
install(FILES "${basename}.pyi" OPTIONAL COMPONENT "${component}" DESTINATION "${PYTHON_ARCH_INSTALL_DIR}${slash_namespace}")
8889
endif()
8990

9091
else()

src/interrogatedb/interrogatedb.pyi

+180
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
1+
def interrogate_request_database(database_filename: str) -> None: ...
2+
def interrogate_request_module(def_: int) -> None: ...
3+
def interrogate_add_search_directory(dirname: str) -> None: ...
4+
def interrogate_add_search_path(pathstring: str) -> None: ...
5+
def interrogate_error_flag() -> bool: ...
6+
7+
# Manifest Symbols
8+
def interrogate_number_of_manifests() -> int: ...
9+
def interrogate_get_manifest(n: int) -> int: ...
10+
def interrogate_get_manifest_by_name(manifest_name: str) -> int: ...
11+
def interrogate_manifest_name(manifest: int) -> str: ...
12+
def interrogate_manifest_definition(manifest: int) -> str: ...
13+
def interrogate_manifest_has_type(manifest: int) -> bool: ...
14+
def interrogate_manifest_get_type(manifest: int) -> int: ...
15+
def interrogate_manifest_has_getter(manifest: int) -> bool: ...
16+
def interrogate_manifest_getter(manifest: int) -> int: ...
17+
def interrogate_manifest_has_int_value(manifest: int) -> bool: ...
18+
def interrogate_manifest_get_int_value(manifest: int) -> int: ...
19+
20+
# Data Elements
21+
def interrogate_element_name(element: int) -> str: ...
22+
def interrogate_element_scoped_name(element: int) -> str: ...
23+
def interrogate_element_has_comment(element: int) -> bool: ...
24+
def interrogate_element_comment(element: int) -> str: ...
25+
def interrogate_get_element_by_name(element_name: str) -> int: ...
26+
def interrogate_get_element_by_scoped_name(element_name: str) -> int: ...
27+
def interrogate_element_type(element: int) -> int: ...
28+
def interrogate_element_has_getter(element: int) -> bool: ...
29+
def interrogate_element_getter(element: int) -> int: ...
30+
def interrogate_element_has_setter(element: int) -> bool: ...
31+
def interrogate_element_setter(element: int) -> int: ...
32+
def interrogate_element_has_has_function(element: int) -> bool: ...
33+
def interrogate_element_has_function(element: int) -> int: ...
34+
def interrogate_element_has_clear_function(element: int) -> bool: ...
35+
def interrogate_element_clear_function(element: int) -> int: ...
36+
def interrogate_element_has_del_function(element: int) -> bool: ...
37+
def interrogate_element_del_function(element: int) -> int: ...
38+
def interrogate_element_has_insert_function(element: int) -> bool: ...
39+
def interrogate_element_insert_function(element: int) -> int: ...
40+
def interrogate_element_has_getkey_function(element: int) -> bool: ...
41+
def interrogate_element_getkey_function(element: int) -> int: ...
42+
def interrogate_element_length_function(element: int) -> int: ...
43+
def interrogate_element_is_sequence(element: int) -> bool: ...
44+
def interrogate_element_is_mapping(element: int) -> bool: ...
45+
46+
# Global Data
47+
def interrogate_number_of_globals() -> int: ...
48+
def interrogate_get_global(n: int) -> int: ...
49+
50+
# Functions
51+
def interrogate_number_of_global_functions() -> int: ...
52+
def interrogate_get_global_function(n: int) -> int: ...
53+
def interrogate_number_of_functions() -> int: ...
54+
def interrogate_get_function(n: int) -> int: ...
55+
def interrogate_function_name(function: int) -> str: ...
56+
def interrogate_function_scoped_name(function: int) -> str: ...
57+
def interrogate_function_has_comment(function: int) -> bool: ...
58+
def interrogate_function_comment(function: int) -> str: ...
59+
def interrogate_function_prototype(function: int) -> str: ...
60+
def interrogate_function_is_method(function: int) -> bool: ...
61+
def interrogate_function_class(function: int) -> int: ...
62+
def interrogate_function_is_unary_op(function: int) -> bool: ...
63+
def interrogate_function_is_operator_typecast(function: int) -> bool: ...
64+
def interrogate_function_is_constructor(function: int) -> bool: ...
65+
def interrogate_function_is_destructor(function: int) -> bool: ...
66+
def interrogate_function_has_module_name(function: int) -> bool: ...
67+
def interrogate_function_module_name(function: int) -> str: ...
68+
def interrogate_function_has_library_name(function: int) -> bool: ...
69+
def interrogate_function_library_name(function: int) -> str: ...
70+
def interrogate_function_is_virtual(function: int) -> bool: ...
71+
def interrogate_function_number_of_c_wrappers(function: int) -> int: ...
72+
def interrogate_function_c_wrapper(function: int, n: int) -> int: ...
73+
def interrogate_function_number_of_python_wrappers(function: int) -> int: ...
74+
def interrogate_function_python_wrapper(function: int, n: int) -> int: ...
75+
76+
# Function Wrappers
77+
def interrogate_wrapper_name(wrapper: int) -> str: ...
78+
def interrogate_wrapper_function(wrapper: int) -> int: ...
79+
def interrogate_wrapper_is_callable_by_name(wrapper: int) -> bool: ...
80+
def interrogate_wrapper_is_copy_constructor(wrapper: int) -> bool: ...
81+
def interrogate_wrapper_is_coerce_constructor(wrapper: int) -> bool: ...
82+
def interrogate_wrapper_is_extension(wrapper: int) -> bool: ...
83+
def interrogate_wrapper_is_deprecated(wrapper: int) -> bool: ...
84+
def interrogate_wrapper_has_comment(wrapper: int) -> bool: ...
85+
def interrogate_wrapper_comment(wrapper: int) -> str: ...
86+
def interrogate_wrapper_has_return_value(wrapper: int) -> bool: ...
87+
def interrogate_wrapper_return_type(wrapper: int) -> int: ...
88+
def interrogate_wrapper_caller_manages_return_value(wrapper: int) -> bool: ...
89+
def interrogate_wrapper_return_value_destructor(wrapper: int) -> int: ...
90+
def interrogate_wrapper_number_of_parameters(wrapper: int) -> int: ...
91+
def interrogate_wrapper_parameter_type(wrapper: int, n: int) -> int: ...
92+
def interrogate_wrapper_parameter_has_name(wrapper: int, n: int) -> bool: ...
93+
def interrogate_wrapper_parameter_name(wrapper: int, n: int) -> str: ...
94+
def interrogate_wrapper_parameter_is_this(wrapper: int, n: int) -> bool: ...
95+
def interrogate_wrapper_parameter_is_optional(wrapper: int, n: int) -> bool: ...
96+
def interrogate_wrapper_has_pointer(wrapper: int) -> bool: ...
97+
def interrogate_wrapper_pointer(wrapper: int) -> None: ...
98+
def interrogate_wrapper_unique_name(wrapper: int) -> str: ...
99+
def interrogate_get_wrapper_by_unique_name(unique_name: str) -> int: ...
100+
101+
# MakeSeqs
102+
def interrogate_make_seq_seq_name(make_seq: int) -> str: ...
103+
def interrogate_make_seq_scoped_name(make_seq: int) -> str: ...
104+
def interrogate_make_seq_has_comment(make_seq: int) -> bool: ...
105+
def interrogate_make_seq_comment(make_seq: int) -> str: ...
106+
def interrogate_make_seq_num_name(make_seq: int) -> str: ...
107+
def interrogate_make_seq_element_name(make_seq: int) -> str: ...
108+
def interrogate_make_seq_num_getter(make_seq: int) -> int: ...
109+
def interrogate_make_seq_element_getter(make_seq: int) -> int: ...
110+
111+
# Types
112+
def interrogate_number_of_global_types() -> int: ...
113+
def interrogate_get_global_type(n: int) -> int: ...
114+
def interrogate_number_of_types() -> int: ...
115+
def interrogate_get_type(n: int) -> int: ...
116+
def interrogate_get_type_by_name(type_name: str) -> int: ...
117+
def interrogate_get_type_by_scoped_name(type_name: str) -> int: ...
118+
def interrogate_get_type_by_true_name(type_name: str) -> int: ...
119+
def interrogate_type_is_global(type: int) -> bool: ...
120+
def interrogate_type_is_deprecated(type: int) -> bool: ...
121+
def interrogate_type_name(type: int) -> str: ...
122+
def interrogate_type_scoped_name(type: int) -> str: ...
123+
def interrogate_type_true_name(type: int) -> str: ...
124+
def interrogate_type_is_nested(type: int) -> bool: ...
125+
def interrogate_type_outer_class(type: int) -> int: ...
126+
def interrogate_type_has_comment(type: int) -> bool: ...
127+
def interrogate_type_comment(type: int) -> str: ...
128+
def interrogate_type_has_module_name(type: int) -> bool: ...
129+
def interrogate_type_module_name(type: int) -> str: ...
130+
def interrogate_type_has_library_name(type: int) -> bool: ...
131+
def interrogate_type_library_name(type: int) -> str: ...
132+
def interrogate_type_is_atomic(type: int) -> bool: ...
133+
def interrogate_type_atomic_token(type: int) -> int: ...
134+
def interrogate_type_is_unsigned(type: int) -> bool: ...
135+
def interrogate_type_is_signed(type: int) -> bool: ...
136+
def interrogate_type_is_long(type: int) -> bool: ...
137+
def interrogate_type_is_longlong(type: int) -> bool: ...
138+
def interrogate_type_is_short(type: int) -> bool: ...
139+
def interrogate_type_is_wrapped(type: int) -> bool: ...
140+
def interrogate_type_is_pointer(type: int) -> bool: ...
141+
def interrogate_type_is_const(type: int) -> bool: ...
142+
def interrogate_type_is_typedef(type: int) -> bool: ...
143+
def interrogate_type_wrapped_type(type: int) -> int: ...
144+
def interrogate_type_is_array(type: int) -> bool: ...
145+
def interrogate_type_array_size(type: int) -> int: ...
146+
def interrogate_type_is_enum(type: int) -> bool: ...
147+
def interrogate_type_is_scoped_enum(type: int) -> bool: ...
148+
def interrogate_type_number_of_enum_values(type: int) -> int: ...
149+
def interrogate_type_enum_value_name(type: int, n: int) -> str: ...
150+
def interrogate_type_enum_value_scoped_name(type: int, n: int) -> str: ...
151+
def interrogate_type_enum_value_comment(type: int, n: int) -> str: ...
152+
def interrogate_type_enum_value(type: int, n: int) -> int: ...
153+
def interrogate_type_is_struct(type: int) -> bool: ...
154+
def interrogate_type_is_class(type: int) -> bool: ...
155+
def interrogate_type_is_union(type: int) -> bool: ...
156+
def interrogate_type_is_fully_defined(type: int) -> bool: ...
157+
def interrogate_type_is_unpublished(type: int) -> bool: ...
158+
def interrogate_type_number_of_constructors(type: int) -> int: ...
159+
def interrogate_type_get_constructor(type: int, n: int) -> int: ...
160+
def interrogate_type_has_destructor(type: int) -> bool: ...
161+
def interrogate_type_destructor_is_inherited(type: int) -> bool: ...
162+
def interrogate_type_get_destructor(type: int) -> int: ...
163+
def interrogate_type_number_of_elements(type: int) -> int: ...
164+
def interrogate_type_get_element(type: int, n: int) -> int: ...
165+
def interrogate_type_number_of_methods(type: int) -> int: ...
166+
def interrogate_type_get_method(type: int, n: int) -> int: ...
167+
def interrogate_type_number_of_make_seqs(type: int) -> int: ...
168+
def interrogate_type_get_make_seq(type: int, n: int) -> int: ...
169+
def interrogate_type_number_of_casts(type: int) -> int: ...
170+
def interrogate_type_get_cast(type: int, n: int) -> int: ...
171+
def interrogate_type_number_of_derivations(type: int) -> int: ...
172+
def interrogate_type_get_derivation(type: int, n: int) -> int: ...
173+
def interrogate_type_is_final(type: int) -> bool: ...
174+
def interrogate_type_derivation_has_upcast(type: int, n: int) -> bool: ...
175+
def interrogate_type_get_upcast(type: int, n: int) -> int: ...
176+
def interrogate_type_derivation_downcast_is_impossible(type: int, n: int) -> bool: ...
177+
def interrogate_type_derivation_has_downcast(type: int, n: int) -> bool: ...
178+
def interrogate_type_get_downcast(type: int, n: int) -> int: ...
179+
def interrogate_type_number_of_nested_types(type: int) -> int: ...
180+
def interrogate_type_get_nested_type(type: int, n: int) -> int: ...

0 commit comments

Comments
 (0)