Python 3.12有这样type的说法。如何正确记录类型别名?
我试过:
type Number = int | float
"""Represents a scalar number that is either an integer or float"""
Run Code Online (Sandbox Code Playgroud)
但这似乎没有将文档字符串与别名关联起来。我尝试将文档字符串放在=别名定义之后和之前,但这生成了错误。
I have a test application written in F# on .NET 7 that opens a window using GLFW and draws to it using SkiaSharp. This application works on Windows, and now I am testing support on Linux. Right now, I am testing on a fresh install of Linux Mint, but the same exit code described here also happens on Ubuntu through WSL2.
However, my application crashes, and the only response is an exit code of 139, which apparently means there's …
.net ×1
docstring ×1
f# ×1
opengl ×1
python ×1
python-3.12 ×1
skia ×1
skiasharp ×1
type-alias ×1
type-hinting ×1