Skip to content

Commit 9503508

Browse files
v-einhoffstadt
authored andcommitted
fix: Corrected a couple of typos.
1 parent 2e9dc5f commit 9503508

3 files changed

Lines changed: 11 additions & 6 deletions

File tree

dearpygui/type_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def get_all_types(**kwargs) -> list:
191191
def get_allowed_parents(distinct_allow_all: bool = False, **kwargs) -> dict:
192192
""" Return all item type names and collections of applicable parenting types as a mapping.
193193
194-
This function returns the set of rules defined defined within Dear PyGui. At runtime, these rules are combined with those from `get_allowed_children()`, and what is allowed here might be disabled there. To get the actual possible combinations of chilren and parent types, see `get_possible_parents()` and `get_possible_children()`.
194+
This function returns a set of rules defined within Dear PyGui. At runtime, these rules get combined with those from `get_allowed_children()`, and what is allowed here might be disabled there. To get the actual possible combinations of chilren and parent types, see `get_possible_parents()` and `get_possible_children()`.
195195
196196
Args:
197197
distinct_allow_all (bool): If set to True, entries for the items accepted by any parent will be set to None. This allows to detect and handle such cases specially if needed. If False, all item types will be listed explicitly in such entries, which allows more straightforward processing of the dict.
@@ -375,7 +375,7 @@ def get_allowed_parents(distinct_allow_all: bool = False, **kwargs) -> dict:
375375
def get_allowed_children(distinct_allow_all: bool = False, **kwargs) -> dict:
376376
""" Return all item type names and collections of applicable child types as a mapping.
377377
378-
This function returns the set of rules defined defined within Dear PyGui. At runtime, these rules are combined with those from `get_allowed_parents()`, and what is allowed here might be disabled there. To get the actual possible combinations of chilren and parent types, see `get_possible_parents()` and `get_possible_children()`.
378+
This function returns a set of rules defined within Dear PyGui. At runtime, these rules get combined with those from `get_allowed_parents()`, and what is allowed here might be disabled there. To get the actual possible combinations of chilren and parent types, see `get_possible_parents()` and `get_possible_children()`.
379379
380380
Args:
381381
distinct_allow_all (bool): If set to True, entries for the items accepting all children types will be set to None. This allows to detect and handle such cases specially if needed. If False, all item types will be listed explicitly in such entries, which allows more straightforward processing of the dict.

sandbox/main_linux.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,11 @@ int main(int argc, char* argv[])
5959
return 1;
6060
}
6161

62+
// This one requires Python interpreter because internally it uses temporary PyObjects
63+
// (hackyish but that's the best we can do for now). That's why we call it here rather
64+
// than together with all other GenerateXYZ functions.
65+
GenerateTypeInfoModule("../../dearpygui");
66+
6267
PyObject* mmarvel = PyImport_ImportModule("_dearpygui");
6368

6469
// tests

src/mvPyUtils.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3007,8 +3007,8 @@ GenerateTypeInfoModule(const std::string& directory)
30073007

30083008
stub << "def get_allowed_parents(distinct_allow_all: bool = False, **kwargs) -> dict:\n"
30093009
" \"\"\" Return all item type names and collections of applicable parenting types as a mapping.\n\n"
3010-
" This function returns the set of rules defined defined within Dear PyGui. At runtime, these rules "
3011-
"are combined with those from `get_allowed_children()`, and what is allowed here might be disabled there. "
3010+
" This function returns a set of rules defined within Dear PyGui. At runtime, these rules "
3011+
"get combined with those from `get_allowed_children()`, and what is allowed here might be disabled there. "
30123012
"To get the actual possible combinations of chilren and parent types, see `get_possible_parents()` and `get_possible_children()`.\n\n"
30133013
" Args:\n"
30143014
" distinct_allow_all (bool): If set to True, entries for the items accepted by any parent will be set to None. "
@@ -3044,8 +3044,8 @@ GenerateTypeInfoModule(const std::string& directory)
30443044

30453045
stub << "def get_allowed_children(distinct_allow_all: bool = False, **kwargs) -> dict:\n"
30463046
" \"\"\" Return all item type names and collections of applicable child types as a mapping.\n\n"
3047-
" This function returns the set of rules defined defined within Dear PyGui. At runtime, these rules "
3048-
"are combined with those from `get_allowed_parents()`, and what is allowed here might be disabled there. "
3047+
" This function returns a set of rules defined within Dear PyGui. At runtime, these rules "
3048+
"get combined with those from `get_allowed_parents()`, and what is allowed here might be disabled there. "
30493049
"To get the actual possible combinations of chilren and parent types, see `get_possible_parents()` and `get_possible_children()`.\n\n"
30503050
" Args:\n"
30513051
" distinct_allow_all (bool): If set to True, entries for the items accepting all children types will be set to None. "

0 commit comments

Comments
 (0)