Что является вторым аргументом ForeignKey в типовых подсказках django stubs?
order = models.ForeignKey["ExtensionOrder", **WhatGoesHere**](
"subscriptions.ExtensionOrder", null=False, on_delete=models.PROTECT
)
Заглушка здесь:
class ForeignKey(ForeignObject[_ST, _GT]):
_pyi_private_set_type: Union[Any, Combinable]
_pyi_private_get_type: Any
...
# class access
@overload # type: ignore
def __get__(self, instance: None, owner) -> ForwardManyToOneDescriptor: ...
# Model instance access
@overload
def __get__(self, instance: Model, owner) -> **_GT**: ...
# non-Model instances
@overload
def __get__(self: _F, instance, owner) -> _F: ...
Пайланс спохватился, но я не уверен, что _GT должно быть