mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 14:21:53 +00:00
10 lines
227 B
Python
10 lines
227 B
Python
"""Test: module bindings are preferred over local bindings, for deferred annotations."""
|
|
|
|
from __future__ import annotations
|
|
|
|
import datetime
|
|
from typing import Optional
|
|
|
|
|
|
class Class:
|
|
datetime: Optional[datetime.datetime]
|