docstring-generator-ext 2.0.8__tar.gz → 2.0.9__tar.gz

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.
Files changed (27) hide show
  1. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/PKG-INFO +1 -1
  2. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/docstring_generator_ext.egg-info/PKG-INFO +1 -1
  3. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/pyproject.toml +1 -1
  4. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/docstringFormat.cpp +3 -1
  5. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/MANIFEST.in +0 -0
  6. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/README.md +0 -0
  7. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/docstring_generator_ext.egg-info/SOURCES.txt +0 -0
  8. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/docstring_generator_ext.egg-info/dependency_links.txt +0 -0
  9. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/docstring_generator_ext.egg-info/requires.txt +0 -0
  10. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/docstring_generator_ext.egg-info/top_level.txt +0 -0
  11. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/setup.cfg +0 -0
  12. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/setup.py +0 -0
  13. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/FunctionFormat.cpp +0 -0
  14. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/FunctionFormat.hpp +0 -0
  15. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/GoogleDocstring.cpp +0 -0
  16. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/GoogleDocstring.hpp +0 -0
  17. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/IDocstringFormat.cpp +0 -0
  18. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/IDocstringFormat.hpp +0 -0
  19. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/NumpyDocstring.cpp +0 -0
  20. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/NumpyDocstring.hpp +0 -0
  21. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/ReStructuredDocstring.cpp +0 -0
  22. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/ReStructuredDocstring.hpp +0 -0
  23. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/docComparator.cpp +0 -0
  24. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/docComparator.hpp +0 -0
  25. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/docstringFormat.hpp +0 -0
  26. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/parser.cpp +0 -0
  27. {docstring_generator_ext-2.0.8 → docstring_generator_ext-2.0.9}/src/parser.hpp +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docstring_generator_ext
3
- Version: 2.0.8
3
+ Version: 2.0.9
4
4
  Summary: Generate Docstrings with type-hint information.
5
5
  Author-email: FelixTheC <fberndt87@gmail.com>
6
6
  Classifier: Environment :: Console
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: docstring_generator_ext
3
- Version: 2.0.8
3
+ Version: 2.0.9
4
4
  Summary: Generate Docstrings with type-hint information.
5
5
  Author-email: FelixTheC <fberndt87@gmail.com>
6
6
  Classifier: Environment :: Console
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "docstring_generator_ext"
3
- version = "2.0.8"
3
+ version = "2.0.9"
4
4
  description = "Generate Docstrings with type-hint information."
5
5
  authors = [
6
6
  { name = "FelixTheC", email = "fberndt87@gmail.com" },
@@ -115,10 +115,12 @@ std::map<std::string, int> check_docstrings(std::string &file_path, const bool &
115
115
 
116
116
  const auto res = analyze_function(obj, ast_module, ignore_magic);
117
117
  if (!res.has_value()) {
118
+ if (ignore_magic)
119
+ --function_checked;
118
120
  continue;
119
121
  }
120
122
 
121
- const FunctionInfo function_info = *res;
123
+ const FunctionInfo& function_info = *res;
122
124
 
123
125
  switch (compare_docstrings(function_info.docstring, function_info)) {
124
126
  case IS_EMPTY: