Skip to content

Incorrect typing_extensions version in pyproject.toml for just-released 1.67 #2153

@sswatson-ap

Description

@sswatson-ap

The lower bound in pyproject.toml for the typing_extensions version is too low in version 1.67.0 of this library. The bound should be at least 4.13, but it's 4.11.

Environment details

  • Programming language: Python
  • OS: Linux
  • Language runtime version: 3.12
  • Package version: 1.67

Steps to reproduce

  1. Do pip install "google-genai==1.67.0" "typing-extensions==4.12.2"
  2. Run from google import genai

This produces the following stack trace:

~/‹›/foobar> .venv/bin/python
>>> from google import genai
Traceback (most recent call last):
  File "<python-input-0>", line 1, in <module>
    from google import genai
  File "/home/sam-watson/code/foobar/.venv/lib/python3.13/site-packages/google/genai/__init__.py", line 18, in <module>
    from . import interactions
  File "/home/sam-watson/code/foobar/.venv/lib/python3.13/site-packages/google/genai/interactions.py", line 17, in <module>
    from ._interactions.types import *
  File "/home/sam-watson/code/foobar/.venv/lib/python3.13/site-packages/google/genai/_interactions/__init__.py", line 20, in <module>
    from . import types
  File "/home/sam-watson/code/foobar/.venv/lib/python3.13/site-packages/google/genai/_interactions/types/__init__.py", line 74, in <module>
    from .interaction_create_params import InteractionCreateParams as InteractionCreateParams
  File "/home/sam-watson/code/foobar/.venv/lib/python3.13/site-packages/google/genai/_interactions/types/interaction_create_params.py", line 34, in <module>
    from .dynamic_agent_config_param import DynamicAgentConfigParam
  File "/home/sam-watson/code/foobar/.venv/lib/python3.13/site-packages/google/genai/_interactions/types/dynamic_agent_config_param.py", line 25, in <module>
    class DynamicAgentConfigParam(TypedDict, total=False, extra_items=object):  # type: ignore[call-arg]
    ...<2 lines>...
        type: Required[Literal["dynamic"]]
TypeError: _TypedDictMeta.__new__() got an unexpected keyword argument 'extra_items'

Metadata

Metadata

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions