Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix and improve type annotations #47

Merged

Conversation

tom-hg57
Copy link
Collaborator

@tom-hg57 tom-hg57 commented Dec 25, 2024

Type annotations make the code easier to understand. It can also be checked with pyright. (Suggestion: check with pyright in pre-commit workflow.)

  • Add type annotations to cimgen and all lang_pack.py
  • Remove unused functions
  • Fix and improve comments
  • Fix ruff warnings for modernpython
  • Unify use of partials for cpp, rename lang_pack to langPack
  • Rename functions, parameters and variables to fix sonar issues
  • Add function get_base_class to all lang_pack.py (replacing dictionary base and function location)
  • Simplified template file handling for java, javascript and python

@tom-hg57 tom-hg57 marked this pull request as draft December 25, 2024 21:05
@tom-hg57 tom-hg57 force-pushed the fix-and-improve-type-annotations branch from da2c017 to c26b74f Compare December 26, 2024 23:05
@tom-hg57 tom-hg57 marked this pull request as ready for review December 27, 2024 00:27
@tom-hg57 tom-hg57 requested a review from m-mirz December 27, 2024 00:27
@m-mirz m-mirz force-pushed the fix-and-improve-type-annotations branch from 26d4a9b to 68c6b84 Compare December 27, 2024 07:38
@m-mirz m-mirz merged commit 3b44357 into sogno-platform:master Dec 27, 2024
14 checks passed
@tom-hg57 tom-hg57 deleted the fix-and-improve-type-annotations branch December 27, 2024 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants