-
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: port code from library-analyzer
#16
Conversation
…ill many functions missing and not working
…d and docstring-parser to poetry
…t_types() for Attribute class types (WIP) | _ast_visitor_mypy.py: added attribute check to enter_moduledef(), enter_classdef() checks for a docstring and superclasses, leave_classdef() and leave_moduledef() stack fixes, extended enter_functiondef(), added leave_enum() | adjusted _ast_walker.py | refactored _get_api.py
…red _ast_visitor_mypy.py + added enum handling + added missing function handling functionalities + contructor handling for classes, removed unused functions, added test data and file
…ed and extended to_dict methods of _api.py
…tions can have multiple results, added Literal class for the Parameter default_value field, added Typ class for type fields; _ast_visitor_mypy.py: rebuild assignmentstmt and resultstmt functions, added utility functions for handling the creation of Type objects; Some refactoring and expansion of the test data files
… the type hint information, adjusted Parameter Class (added is_optional field), temporaty removed most of Type class usages and added strings instead, removed value field for enum instances, removed Literal Class; _ast_visitor_mypy.py: removes resultstmt enter and leave functions, adjusted other enter and leave functions with better parsing; refactored test file
…onality for parsing parameters
…removed some todos
Regarding the conflicts in |
@lars-reimann Eine Frage zu den "results": Wenn es keinen Result, also keinen Type Hint für den Return Typ, gibt, wie soll das dargestellt werden? Soll das als "None" oder als "Any" dargestellt werden oder soll dann für die jeweilige Funktion gar kein Result eingetragen und gespeichert werden? |
… type classes & adjusted how results are handled
Wenn es weder einen Type Hint noch einen Eintrag in der Doku gibt (oder explizit |
…lt handling in the ast_visitor if a return type is "None"
@lars-reimann Ich habe syrupy hinzugefügt und snapshot testing hinzugefügt wie gewünscht war. |
…ded test_types.py file from the Library-Analyzer library (and commented out functions using the create_type function).
# Conflicts: # src/safeds_stubgen/api_analyzer/_types.py
@lars-reimann Ich bin hier soweit fertig und der Pull Request könnte nun von dir abgenommen werden. |
library-analyzer
## [0.1.0](v0.0.1...v0.1.0) (2023-11-29) ### Features * drop Python 3.10 and add Python 3.12 ([#23](#23)) ([091826d](091826d)) * port code from `library-analyzer` ([#16](#16)) ([5e0b3b1](5e0b3b1)) ### Bug Fixes * Added handling for boolean default values for parameters ([#25](#25)) ([1ff250d](1ff250d)) * **deps-dev:** bump urllib3 from 2.0.6 to 2.0.7 ([#26](#26)) ([ff1a33b](ff1a33b)), closes [#3144](https://github.com/Safe-DS/Stub-Generator/issues/3144) * Fixed bugs for analyzing packages and api data creation. ([#27](#27)) ([80215a3](80215a3))
🎉 This PR is included in version 0.1.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Summary of Changes