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

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

bj
登录
  • 友情链接
站内
type-hinting

type-hinting

go

如何测试`__annotations__`成员的类型与泛型类参数相同?

英文: How to test __annotations__ member has same type as generic class parameter? 问题 我想能够只选择已注释的成员,这些...
huangapple 2023年8月10日305评论generics python
go

正确地为返回生成器表达式的可调用对象进行类型标注。

英文: Properly type a callable returning a Generator expression 问题 我有以下的代码片段 ```python from contextlib...
huangapple 2023年8月9日158评论python type-hinting
go

如何在`QRunnable`类内部使用`pyqtSlot()`装饰器正确地为函数添加类型提示?

英文: How to correctly type-hint a function with `pyqtSlot()` decorator inside `QRunnable` class? 问题 状...
huangapple 2023年8月9日174评论pyqt5 python
go

如何正确在`QRunnable`类中使用`pyqtSlot()`装饰器为函数添加类型提示?

英文: How to correctly type-hint a function with `pyqtSlot()` decorator inside `QRunnable` class? 问题 *...
huangapple 2023年8月9日166评论pyqt5 python
go

在Python中管理相互引用的类之间的循环依赖和类型提示

英文: Managing Circular Dependencies and Type Hints Between Mutually Referencing Classes in Python 问题 ...
huangapple 2023年8月9日147评论python type-hinting
go

Unbound TypeVar variable in overloaded class

英文: Unbound TypeVar variable in overloaded class 问题 我有以下的代码,这是一个简化版本的Python实体组件系统: from __future__ i...
huangapple 2023年7月31日168评论python python-3.x
go

使用枚举值作为类型变量,而不使用 Literal

英文: Using Enum values as type variables, without using Literal 问题 我正在尝试表示物理维度(长度、时间、温度等),但无法找到一种与类型提...
huangapple 2023年7月13日167评论inheritance python
go

理解Python类型注释在索引之后

英文: Understanding Python type annotation after indexing 问题 我在我的代码中犯了一个错字,将一个=替换成了一个:,导致一行代码看起来像这样: d...
huangapple 2023年7月11日166评论python syntax
go

Pylance 中 Union 类型变量的类型推断问题

英文: Type inference issue in Pylance for a variable of Union type 问题 我正在编写一个根据参数是标量还是NumPy数组而具有不同行为的函...
huangapple 2023年6月19日289评论numpy python
go

在Python中,如何将一个方法的返回类型作为另一个方法的类型提示?

英文: Typehint method as returning return type of other method in python? 问题 I have a base class: from...
huangapple 2023年6月12日136评论python type-hinting

文章导航

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

热门标签

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

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

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

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

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

    本页二维码