django_hint
一款django类型自动判断的插件
from django_hint import QueryType, RequestType from xxx.models import SampleModel def index(request: RequestType): print(request.path.title()) def query(sample_query: QueryType[SampleModel]): # sample_query: QueryType[SampleModel] = SampleModel.objects.filter(name='sample') sample_query.get()

浙公网安备 33010602011771号