weaviate-python-client icon indicating copy to clipboard operation
weaviate-python-client copied to clipboard

Improve typing of filters

Open dirkkul opened this issue 1 year ago • 1 comments
trafficstars

Currently we return _FilterValue, _FilterAnd and _FilterOr from various filter functions. This makes it a type error when using &=and |= which works without problems. Instead all of these functions should return _Filters (which is the baseclass for all the other Filtertypes). The exact subtype is only relevant internally and not for users as all of them can be freely combined

dirkkul avatar Mar 08 '24 12:03 dirkkul

Implemented in https://github.com/weaviate/weaviate-python-client/pull/973

tsmith023 avatar Mar 22 '24 16:03 tsmith023