Violation of Liskov Substitution Principle
还没有人认领这个 Issue。
评估
调研方向
从 graphql/execution/executor.py#L704 开始,阅读周围的执行逻辑,以了解如何处理 Django 模型的子类。使用 Graphene-Django,以及在可用时使用 django-polymorphic,重现所报告的行为,然后确定预期的替换行为并添加回归覆盖。完成的标准是,所报告的子类场景能够正常工作,且不会破坏现有的执行行为。
由索引模型根据 Issue 内容生成。
描述
Above referenced line violates Liskov Substitution Principle when used with at least Graphene-Django and the underlying model is itself a subclass of aDjangoObjectType.Meta.model class.
A popular variant of this violation is use of django-polymorphic, which is quite prevalent. However, we're talking basic Python here.
- 主要语言
- Python
- 星标
- 371
- 派生
- 174
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
graphql-python/graphql-core-legacy 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 68/100
-
Quiver source未关闭
难度 5/5 一周以上 新手友好度 20/100
graphql-python/graphql-core-legacy#286 · 3 个 reaction ·
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 35/100
graphql-python/graphql-core-legacy#280 · 2 条评论 · 1 个 reaction ·
-
Add support for custom validators in default GraphQL backend可能已有人在做 @JoaRiski 于 2424 天前认领。 未关闭
难度 4/5 3-5 天 新手友好度 35/100
查看 graphql-python/graphql-core-legacy 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 68/100
jbacalso24/mimry#291 ·
维护者通常 1 天内回复
-
good first issue
难度 2/5 1 小时以内 新手友好度 82/100
eli-alvarado/us-watchlist-alerts#14 ·
维护者通常 1 天内回复
-
from-review-extraction python severity:nit
难度 2/5 1-3 小时 新手友好度 80/100
LearningCircuit/local-deep-research#7462 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
cathrynlavery/diagram-design#441 ·
维护者通常 2 天内回复
-
[Cleanup] Include the public header in work_split.cpp可能已有人在做 @blozano-tt 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
tenstorrent/tt-metal#60850 ·
维护者通常 1 天内回复