fastmcp 0.4.1__py3-none-any.whl → 2.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,6 @@
2
2
 
3
3
  import base64
4
4
  from pathlib import Path
5
- from typing import Optional, Union
6
5
 
7
6
  from mcp.types import ImageContent
8
7
 
@@ -12,9 +11,9 @@ class Image:
12
11
 
13
12
  def __init__(
14
13
  self,
15
- path: Optional[Union[str, Path]] = None,
16
- data: Optional[bytes] = None,
17
- format: Optional[str] = None,
14
+ path: str | Path | None = None,
15
+ data: bytes | None = None,
16
+ format: str | None = None,
18
17
  ):
19
18
  if path is None and data is None:
20
19
  raise ValueError("Either path or data must be provided")