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

Commits on Aug 28, 2024

  1. refactor(input_mixin.py): update typing annotations for variables to …

    …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
    ogabrielluiz committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    fcb1c7b View commit details
    Browse the repository at this point in the history
  2. refactor(base.py): remove unnecessary imports and update typing for f…

    …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
    ogabrielluiz committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    8186fca View commit details
    Browse the repository at this point in the history
  3. refactor(inputs): remove unnecessary Optional import from typing in i…

    …nput_mixin.py and inputs.py files to improve code readability and maintainability
    ogabrielluiz committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    d15f5b2 View commit details
    Browse the repository at this point in the history
  4. refactor(schema.py): change 'Type' to 'type' for consistency in type …

    …annotations
    
    refactor(schema.py): change 'list' to 'List' and 'Literal' to 'literal' for correct type hinting in create_input_schema function
    ogabrielluiz committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    2e560fa View commit details
    Browse the repository at this point in the history
  5. test: fix tests

    italojohnny authored and ogabrielluiz committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    a27c6df View commit details
    Browse the repository at this point in the history