File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
repos :
2
2
- repo : https://github.com/charliermarsh/ruff-pre-commit
3
- rev : v0.11.8
3
+ rev : v0.12.9
4
4
hooks :
5
5
- id : ruff
6
6
args : [
@@ -10,12 +10,12 @@ repos:
10
10
- id : ruff-format
11
11
files : ^python-sdk/
12
12
- repo : https://github.com/pre-commit/mirrors-mypy
13
- rev : v1.15.0
13
+ rev : v1.17.1
14
14
hooks :
15
15
- id : mypy
16
16
files : ^python-sdk/
17
17
args : [
18
- --python-version=3.12 ,
18
+ --python-version=3.9 ,
19
19
--disallow-untyped-calls,
20
20
--disallow-untyped-defs,
21
21
--disallow-incomplete-defs,
Original file line number Diff line number Diff line change 2
2
This module contains the EventEncoder class
3
3
"""
4
4
5
+ from typing import Union
6
+
5
7
from ag_ui .core .events import BaseEvent
6
8
7
9
AGUI_MEDIA_TYPE = "application/vnd.ag-ui.event+proto"
@@ -12,7 +14,7 @@ class EventEncoder:
12
14
Encodes Agent User Interaction events.
13
15
"""
14
16
15
- def __init__ (self , accept : str | None = None ):
17
+ def __init__ (self , accept : Union [ str , None ] = None ):
16
18
pass
17
19
18
20
def get_content_type (self ) -> str :
You can’t perform that action at this time.
0 commit comments