opensource-observer / oso

Measuring the impact of open source software
https://opensource.observer
Apache License 2.0
73 stars 16 forks source link

`@asset`-decorared functions types do not get narrowed to `AssetsDefinition` #2403

Open Jabolol opened 4 weeks ago

Jabolol commented 4 weeks ago

What is it?

After bumping versions, pylint fails. When we decorate a function with @asset, that function should have its type narrowed to AssetsDefinition, which it does not. For the moment, we have used cast to circumvent this.