mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-29 05:15:12 +00:00
9 lines
165 B
Python
9 lines
165 B
Python
from typing import TYPE_CHECKING
|
|
from django.db.models import ForeignKey
|
|
|
|
if TYPE_CHECKING:
|
|
from pathlib import Path
|
|
|
|
|
|
class Foo:
|
|
var = ForeignKey["Path"]()
|