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

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

bj
登录
  • 友情链接
站内
mypy

mypy

go

如何从marshmallow模式中推断类型(用于mypy和IDE)?

英文: How to infer type (for mypy & IDE) from a marshmallow schema? 问题 I have not asked a Python q...
huangapple 2023年3月7日239评论python types
go

Python mypy类型检查未按预期工作。

英文: Python mypy type checking not working as expected 问题 I'm new to python, and am a huge fan of sta...
huangapple 2023年3月7日175评论python types
go

Multiprocessing and event, type hint issue python

英文: Multiprocessing and event, type hint issue python 问题 我使用了multiprocessing模块来执行后台任务。 # module_a.py...
huangapple 2023年3月4日131评论multiprocessing python
go

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

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

在Python中使用returns包的嵌套泛型

英文: Nested generics in python using the returns package 问题 以下是代码的翻译部分: 作为示例,我有一个动物园。一个动物园(Z)有一个笼子列表(...
huangapple 2023年2月23日140评论mypy python
go

Type hinting numpy arrays and batches

英文: Type hinting numpy arrays and batches 问题 我正在尝试为一个科学Python项目创建一些数组类型。到目前为止,我已经创建了用于1D、2D和ND numpy...
huangapple 2023年2月19日161评论arrays numpy
go

Python list.sort(key=lambda x: …) type hints

英文: Python list.sort(key=lambda x: ...) type hints 问题 我正在根据以下方式的键对字典列表进行排序 my_function() -> list[...
huangapple 2023年2月16日171评论python types
go

如何告诉mypy我明确在测试一个错误的类型?

英文: How to tell mypy that I am explicitly testing for an incorrect type? 问题 考虑以下玩具示例: import pytest ...
huangapple 2023年2月14日135评论pytest python
go

可以通过编程方式从已实例化的类生成一个.pyi文件以进行自动完成吗?

英文: Is it possible to programmatically generate a pyi file from an instantiated class (for autocompl...
huangapple 2023年2月10日134评论python python-3.x
go

如何修复SQLAlchemy Table.columns中的mypy类型Any错误

英文: How to fix mypy type Any error in sqlalchemy Table.columns 问题 以下是您要翻译的内容: I'm still new to t...
huangapple 2023年2月10日148评论python sqlalchemy
5

文章导航

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

热门标签

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

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

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

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

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

    本页二维码