mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +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]
|