← All tasks
pythonDataDog/datadog-api-client-python #1727Not a task: already works

Should depend on typing_extensions >=4.0.0

envgap__DataDog__datadog-api-client-python-1727

01 / FAILURE SIGNATURE

As reported upstream

`ImportError: cannot import name 'Self' from 'typing_extensions'`
Not a benchmark task.
  • The project already builds and runs before the fix, so there is nothing to repair.

02 / ENVIRONMENT RECIPE

Base commit
0f5b476141a34683a88d18f9132a358bb6457e65
Manifest
setup.cfg
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

DataDog/datadog-api-client-python #1727 · read the original issue
**Describe the bug**

`api_client.py` imports `Self` from `typing_extensions`. However, [this was added in version 4.0.0 of typing_extensions](https://github.com/python/typing_extensions/commit/0d10fec91740924bb48cc4435df093c12a1c2368). There does not appear to be a dependency specified for `typing_extensions`. When installing using the documented instructions (`pip install datadog-api-client`) in environments with older versions of `typing_extensions`, importing `datadog_api_client` will fail at runtime:



`ImportError: cannot import name 'Self' from 'typing_extensions'`



**To Reproduce**

Steps to reproduce the behavior:



1. Install via pip on Ubuntu 22.04.2 LTS.

2. `import datadog_api_client`

3. Observe `ImportError`
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]