mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-01 06:11:43 +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"]()
|