开发者交流平台
开发者交流平台

通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。

bj
登录
  • 友情链接
站内
python-typing

python-typing

go

在签名中具有 TypeVars 的协议的实现者不能使用自己的类型代替。

英文: Implementers of a Protocol with TypeVars in signatures can't use their own types instead 问题 ...
huangapple 2023年6月19日182评论mypy python
go

获取嵌套TypedDicts的键

英文: Get keys of nested TypedDicts 问题 以下是已翻译的内容: 拥有以下的 TypedDict: class MySubClass(TypedDict): name: ...
huangapple 2023年6月16日177评论python python-typing
go

如何使用类型提示要求键值对,当键具有无效的标识符时?

英文: With type hinting, how do I require a key value pair when the key has an invalid identifier? 问题 ...
huangapple 2023年6月16日180评论mypy python
go

从字符串文字基于联合类型创建数据类实例

英文: Create dataclass instance from union type based on string literal 问题 我试图为我们的代码库实现强类型。代码的一个重要部分是处...
huangapple 2023年6月1日176评论mypy python
go

如何在类下定义一个嵌套的Pydantic模型

英文: How to define a Pydantic model nested under a class 问题 以下是您提供的代码的翻译部分: 我有两个Pydantic模型: from typi...
huangapple 2023年5月25日179评论pydantic python
go

Evaluating forward references with typing.get_type_hints in Python for a class defined inside another method/class

英文: Evaluating forward references with typing.get_type_hints in Python for a class defined inside an...
huangapple 2023年5月25日177评论python type-hinting
go

调用插入到端口的适配器类实例会导致mypy问题。

英文: Calling instance of adapter class plugged into port is causing mypy issues 问题 I'm currently plug...
huangapple 2023年5月22日175评论mypy python
go

Mypy在使用ArrayLike时出现错误。

英文: Mypy errors when using ArrayLike 问题 I don't understand how I should be using ArrayLike in my cod...
huangapple 2023年5月17日159评论numpy python
go

适用于可以使用 ** 操作符进行解包的任何对象的正确类型注释是什么?

英文: What is the proper type annotation for any object that can be unpacked with the ** operator? 问题 ...
huangapple 2023年5月17日190评论python types
go

Pydantic是否有一个模型属性的约定,该属性将默认为另一个属性的函数?

英文: Is there a Pydantic convention for a Model attribute that will default to a function of another ...
huangapple 2023年4月13日161评论pydantic python
3

文章导航

1 2 3
name
开发者交流平台
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
文章117266 留言 4 访客17591871

热门标签

sql json spring python html pandas r c# typescript arrays javascript c++ node.js go reactjs spring-boot android flutter java css

悟已往之不谏,知来者之可追!

今日
00%
已00小时
本周
00%
已过00天
本月
00%
已过00天
今年
00%
已是00月

Copyright ©  开发者交流平台 版权所有.

闽 ICP 备 2022019110 号 - 1
  • 开发者交流平台

    本页二维码