Skip to content

chore: update version and enhance GenericSession with new callbacks#147

Open
xerion12 wants to merge 2 commits intoRatio1:mainfrom
xerion12:fix/version-sync-typehints-callbacks
Open

chore: update version and enhance GenericSession with new callbacks#147
xerion12 wants to merge 2 commits intoRatio1:mainfrom
xerion12:fix/version-sync-typehints-callbacks

Conversation

@xerion12
Copy link
Copy Markdown

@xerion12 xerion12 commented Dec 7, 2025

1. Version Synchronization

  • Updated pyproject.toml version from 3.2.25 to 3.4.112 to match ratio1/_ver.py

2. Type Hints Enhancement

  • Added typing imports and type annotations to all __init__ parameters
  • Improved type safety for callback parameters
  • Fixed default value handling for optional parameters

3. Callback Implementation

on_pipeline_create Callback

  • Signature: Callable[[GenericSession, Pipeline], None]
  • Invoked when: Pipelines are created via create_pipeline() or attached via attach_to_pipeline()

on_instance_create Callback

  • Signature: Callable[[GenericSession, Pipeline, Instance], None]
  • Invoked when: Plugin instances are created

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.

1 participant