Skip to content

Conversation

@dolfinus
Copy link
Contributor

@dolfinus dolfinus commented Dec 12, 2025

One-line summary for changelog:

Python: fix .with_additional_properties() annotation

Meaningful description

Currently this code fails on mypy:

from openlineage.client.generated.base import BaseFacet

facet = BaseFacet().with_additional_properties(a="b")
123.py:3: error: Argument "a" to "with_additional_properties" of "BaseFacet" has incompatible type "str"; expected "dict[str, Any]"  [arg-type]
    facet = BaseFacet().with_additional_properties(a="b")
                                                     ^~~
Found 1 error in 1 file (checked 1 source file)

This is because def func(**kwargs: dict[str, Any]) expect every item of kwargs map to be a dict[str, Any].

@dolfinus dolfinus requested a review from a team as a code owner December 12, 2025 08:51
@boring-cyborg boring-cyborg bot added area:client/python openlineage-python language:python Uses Python programming language labels Dec 12, 2025
@dolfinus dolfinus force-pushed the bugfix/python-additional-properties-typing branch from 32cce69 to c63b22f Compare December 12, 2025 08:52
@dolfinus
Copy link
Contributor Author

Failed unit-test-integration-common is unrelated

@kacpermuda
Copy link
Contributor

Failing SQL parser test is unrelated.

@kacpermuda kacpermuda merged commit 5b272d5 into OpenLineage:main Dec 12, 2025
16 of 17 checks passed
@dolfinus dolfinus deleted the bugfix/python-additional-properties-typing branch December 12, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:client/python openlineage-python language:python Uses Python programming language

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants