Replace `assert`'s in Consumer methods with proper validation
未关闭
easy
help wanted
- 主要语言
- Python
- 星标
- 1.4k
- 派生
- 269
- 平均合并
- 1 天 1 小时
- 30 天内合并 PR
- 6
描述
Currently Consumer does something like:
```
assert all(map(lambda k: isinstance(k, TopicPartition), partitions))
```
* Replace this with a proper value check, raise sensible errors like TypeError or ValueError.
* Add respective simple validation tests
贡献指南
评估
这个 Issue 还没有评估数据。