Skip to content

Python generates ambiguous type imports #7410

@gavinbarron

Description

@gavinbarron

What are you generating using Kiota, clients or plugins?

API Client/SDK

In what context or format are you using Kiota?

Nuget tool

Client library/SDK language

Python

Describe the bug

Generating Microsoft Graph Beta using mypy 1.19.1 as we do in the integration tests results in errors

https://github.com/microsoft/kiota/actions/runs/22319588027/job/64574290141

Under mypy 1.17.x as we use in the python repos these errors are non present.

Expected behavior

We generate code for Microsoft Graph that will compile using the stricter settings of mypy 1.19.1

How to reproduce

Generate Microsoft Graph Beta and try to build using mypy 1.19.1

Open API description file

No response

Kiota Version

1.30

Latest Kiota version known to work for scenario above?(Not required)

No response

Known Workarounds

relax mypy to 1.17.x

Configuration

No response

Debug output

Click to expand log ```
</details>


### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Needs Triage 🔍

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions