mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 13:25:17 +00:00
23 lines
458 B
Python
23 lines
458 B
Python
"""Test case: strings used within calls within type annotations."""
|
|
|
|
from typing import Callable
|
|
|
|
import bpy
|
|
from mypy_extensions import VarArg
|
|
|
|
from foo import Bar
|
|
|
|
|
|
class LightShow(bpy.types.Operator):
|
|
label = "Create Character"
|
|
name = "lightshow.letter_creation"
|
|
|
|
filepath: bpy.props.StringProperty(subtype="FILE_PATH") # OK
|
|
|
|
|
|
def f(x: Callable[[VarArg("os")], None]): # F821
|
|
pass
|
|
|
|
|
|
f(Callable[["Bar"], None])
|
|
f(Callable[["Baz"], None])
|