dry-python / dry-python/returns
Consider refactoring
未关闭
enhancement
help wanted
- 主要语言
- Python
- 星标
- 4.4k
- 派生
- 155
- 平均合并
- 2 小时 27 分钟
- 30 天内合并 PR
- 22
描述
We have almost completely re-invented how to get callable arguments by name, position, and type:
https://github.com/dry-python/returns/blob/c243100ce672a8fb84caf2d0dfb224acfbaa097e/returns/contrib/mypy/_typeops/transform_callable.py#L63-L97
But, `mypy` already has this:
https://github.com/python/mypy/blob/52702e588ad2b8702ad74888ea10df852af1f035/mypy/typeops.py#L289-L313
Maybe, we can reuse it?
贡献指南
评估
这个 Issue 还没有评估数据。