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

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

bj
登录
  • 友情链接
站内
typing

typing

go

Typescript: 如何为类注册表变量定义类型?

英文: Typescript: How can one type a class registry variable? 问题 I've translated the code portion as r...
huangapple 2023年4月19日140评论generics typescript
go

For type checking, can I use decorators to check optional typed class attributes are defined to prevent None object has no attribute errors?

英文: For type checking, can I use decorators to check optional typed class attributes are defined to ...
huangapple 2023年4月19日143评论mypy python
go

mypy: 在覆盖变量时赋值的类型不兼容

英文: mypy: Incompatible types in assignment when overwriting a variable 问题 我在运行版本为0.942的mypy时遇到了“assi...
huangapple 2023年4月4日157评论mypy python
go

TS & Vue3: 防止使用 @ts-ignore,因为类型 ‘boolean’ 无法赋值给类型 ‘never’。

英文: TS & Vue3: Prevent using @ts-ignore for Type 'boolean' is not assignable to type ...
huangapple 2023年3月10日154评论javascript typescript
go

类型保护用于具有相同字段的类型

英文: Type guards for types with the same fields 问题 我遇到了结构类型的一个限制,想知道是否有绕过它的方法。 假设我有以下类型的层次结构: type Me...
huangapple 2023年3月8日125评论typescript typing
go

如何在Python中定义自定义可调用类型

英文: how to type a custom callable type in Python 问题 我有一个名为Foo的类: class Foo: def __init__(self, calla...
huangapple 2023年2月24日142评论generics python
go

创建具有类型注释的Python类(通过编程方式)。

英文: Create python class with type annotations programatically 问题 我希望能够像以下这样通过编程方式创建一个Python类: class ...
huangapple 2023年2月18日129评论metaprogramming python
go

Generic vs Specific MyPy types of functions

英文: Generic vs Specific MyPy types of functions 问题 我记得在某处阅读或听说过,对于一个函数,输入类型应尽可能通用(Iterable 而不是 list)...
huangapple 2023年2月7日139评论mypy python
2

文章导航

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

热门标签

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

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

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

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

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

    本页二维码