Since dbt-semantic-interfaces is a direct dependency for dbt-core, it causes ImportError when someone installs dbt-core with typing-extensions>=4.0,<4.4.0:
The solution is to stick to typing-extensions>=4.4.0 or typing-extensions~=4.4. I would prefer the first one because newer versions are getting bugs fixed and new features backported.
Expected Behavior
No ImportError raised.
Steps To Reproduce
pip install dbt-semantic-interfaces
pip install "typing-extensions>=4.0,<4.4.0"
from dbt_semantic_interfaces.transformations import names
Relevant log output
No response
Environment
- OS: Any
- Python: Any
- dbt-semantic-interfaces: 0.3.0
Is this a new bug in dbt-semantic-interfaces?
Current Behavior
This package currently depends on
typing-extensions~=4.0
: https://github.com/dbt-labs/dbt-semantic-interfaces/blob/d919c0cb0b168df7f3edcbfa35287b14bf063424/pyproject.toml#L31But here it uses
override
function which was introduced in typing-extensions 4.4.0: https://github.com/dbt-labs/dbt-semantic-interfaces/blob/d919c0cb0b168df7f3edcbfa35287b14bf063424/dbt_semantic_interfaces/transformations/names.py#L3Since
dbt-semantic-interfaces
is a direct dependency fordbt-core
, it causes ImportError when someone installsdbt-core
withtyping-extensions>=4.0,<4.4.0
:The solution is to stick to
typing-extensions>=4.4.0
ortyping-extensions~=4.4
. I would prefer the first one because newer versions are getting bugs fixed and new features backported.Expected Behavior
No ImportError raised.
Steps To Reproduce
Relevant log output
No response
Environment
Additional Context
No response