mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
12 lines
244 B
Python
12 lines
244 B
Python
"""Test: module bindings are preferred over local bindings, for deferred annotations."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from typing import TypeAlias, List
|
|
|
|
|
|
class Class:
|
|
List: TypeAlias = List
|
|
|
|
def bar(self) -> List:
|
|
pass
|