Skip to content
New issue

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

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

Already on GitHub? # to your account

chore: update type annotations in template, io and inputs modules #3593

Merged
merged 5 commits into from
Aug 28, 2024

Conversation

ogabrielluiz
Copy link
Contributor

Ran uvx --from pyupgrade-directories pyup-dirs --py310-plus src/backend/base/langflow/io/*, uvx --from pyupgrade-directories pyup-dirs --py310-plus src/backend/base/langflow/template/* and uvx --from pyupgrade-directories pyup-dirs --py310-plus src/backend/base/langflow/inputs/*

@dosubot dosubot bot added size:L This PR changes 100-499 lines, ignoring generated files. python Pull requests that update Python code labels Aug 28, 2024
Copy link
Contributor

Pull Request Validation Report

This comment is automatically generated by Conventional PR

Whitelist Report

Whitelist Active Result
Pull request is a draft and should be ignored
Pull request is made by a whitelisted user and should be ignored
Pull request is submitted by a bot and should be ignored
Pull request is submitted by administrators and should be ignored

Result

Pull request does not satisfy any enabled whitelist criteria. Pull request will be validated.

Validation Report

Validation Active Result
All commits in this pull request has valid messages
Pull request does not introduce too many changes
Pull request has a valid title
Pull request has mentioned issues
Pull request has valid branch name
Pull request should have a non-empty body

Result

Pull request satisfies all enabled pull request rules.

Last Modified at 28 Aug 24 12:38 UTC

@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Aug 28, 2024
Base automatically changed from chore/pyupgrade-api to main August 28, 2024 19:15
ogabrielluiz and others added 5 commits August 28, 2024 16:23
…use union types for better clarity and compatibility with Python 3.10

refactor(inputs.py): update typing annotations for variables to use union types and import necessary modules for compatibility with Python 3.10
…ields in Input and Output classes

feat(base.py): add support for specifying field types more explicitly in Input and Output classes
feat(frontend_node/base.py): enhance typing and field definitions in FrontendNode class
feat(frontend_node/custom_components.py): improve typing and field definitions in CustomComponentFrontendNode and ComponentFrontendNode classes
feat(template/base.py): update typing for fields in Template class and remove unnecessary imports
…nput_mixin.py and inputs.py files to improve code readability and maintainability
…annotations

refactor(schema.py): change 'list' to 'List' and 'Literal' to 'literal' for correct type hinting in create_input_schema function
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) August 28, 2024 19:23
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) August 28, 2024 19:29
@ogabrielluiz ogabrielluiz enabled auto-merge (squash) August 28, 2024 19:34
@ogabrielluiz ogabrielluiz merged commit 1883710 into main Aug 28, 2024
29 of 30 checks passed
@ogabrielluiz ogabrielluiz deleted the chore/pyupgrade-templateio branch August 28, 2024 19:35
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
ignore-for-release lgtm This PR has been approved by a maintainer python Pull requests that update Python code size:L This PR changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants