-
Notifications
You must be signed in to change notification settings - Fork 0
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
feat: Added generation for Safe-DS stubs files #33
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…rts + package information + class + methods + attr
…d TODO messages for the SafeDS Stubs, if unallowed type hints were used
… so that one can access the dictionaries directly and does not have to iterate over all lists.
…fferent path lengths. Fixed a bug _ast_visitor.py for the api data creation, in which the id of modules did not correctly represent their path.
… (w/o tests), fixed a bug where creating directories for stubs would cause an exception
…butes that have the same name as the source package
…to fixes-path_lengths-module_id
@lars-reimann Could you check and adjust the snapshots in the |
lars-reimann
reviewed
Nov 6, 2023
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
lars-reimann
previously requested changes
Nov 6, 2023
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
tests/safeds_stubgen/stubs_generator/__snapshots__/test_generate_stubs.ambr
Outdated
Show resolved
Hide resolved
…um or class body are removed, added static modifier for class attributes, adjusted todo messages for stubs, added () for class constructors
…m_string method from NamedType Class
…s "Class" in _api.py and added the property method is_abstract. Fixed a test.
…Class "Parameter" in _api.py
lars-reimann
reviewed
Dec 4, 2023
if a union has multiple literal types.
lars-reimann
reviewed
Dec 5, 2023
… refactoring and adding more test cases
…eration # Conflicts: # src/safeds_stubgen/api_analyzer/_mypy_helpers.py
lars-reimann
approved these changes
Dec 7, 2023
lars-reimann
pushed a commit
that referenced
this pull request
Mar 29, 2024
## [0.2.0](v0.1.0...v0.2.0) (2024-03-29) ### Features * Added generation for Safe-DS stubs files ([#33](#33)) ([ab45b45](ab45b45)) * Correct stubs for TypeVars ([#67](#67)) ([df8c5c9](df8c5c9)), closes [#63](#63) * Create stubs for public methods of inherited internal classes ([#69](#69)) ([71b38d7](71b38d7)), closes [#64](#64) * Rework import generation for stubs. ([#50](#50)) ([216e179](216e179)), closes [#38](#38) [#24](#24) [#38](#38) [#24](#24) * Safe-DS stubs also contain docstring information. ([#78](#78)) ([bdb43bd](bdb43bd)) * Stubs are created for referenced declarations in other packages ([#70](#70)) ([522f38d](522f38d)), closes [#66](#66) ### Bug Fixes * Some packages couldn't be analyzed ([#51](#51)) ([fa3d020](fa3d020)), closes [#48](#48) * Stub generation testing and fixing of miscellaneous bugs ([#76](#76)) ([97b0ab3](97b0ab3))
🎉 This PR is included in version 0.2.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary of Changes
Added the automatic generation of Safe-DS stubs files after an api call.