Mypy 1.8.0 Documentationsystem: when we annotate some variable with a type T, we are actually telling mypy that variable can be assigned an instance of T, or an instance of a subtype of T. That is, list[str] is a subtype of Iterable[str] using the form from typing import Union (as op- posed to doing just import typing or import typing as t or from typing import *). For brevity, we often omit imports from typing or collections.abc in code For more information about stubs, see Stub files. 1.1.7 Next steps If you are in a hurry and don’t want to read lots of documentation before getting started, here are some pointers to quick learning0 码力 | 234 页 | 902.89 KB | 1 年前3
Mypy 1.8.0 Documentationvalidity of overrides [override] Check that function returns a value [return] Check that functions don’t have empty bodies outside stubs [empty-body] Check that return value is compatible [return-value] Check outside of coroutines [await-not-async] Check types in assert_type [assert-type] Check that function isn’t used in boolean context [truthy-function] Check that string formatting/interpolation is type-safe [str-format] [str-format] Check for implicit bytes coercions [str-bytes-safe] Check that overloaded functions don’t overlap [overload-overlap] Notify about an annotation in an unchecked function [annotation- unchecked]0 码力 | 318 页 | 271.55 KB | 1 年前3
Mypy 1.10.0+dev Documentationvalidity of overrides [override] Check that function returns a value [return] Check that functions don’t have empty bodies outside stubs [empty-body] Check that return value is compatible [return-value] Check outside of coroutines [await-not-async] Check types in assert_type [assert-type] Check that function isn’t used in boolean context [truthy-function] Check that string formatting/interpolation is type-safe [str-format] [str-format] Check for implicit bytes coercions [str-bytes-safe] Check that overloaded functions don’t overlap [overload-overlap] Notify about an annotation in an unchecked function [annotation- unchecked]0 码力 | 318 页 | 270.84 KB | 1 年前3
Mypy 1.10.0+dev Documentationsystem: when we annotate some variable with a type T, we are actually telling mypy that variable can be assigned an instance of T, or an instance of a subtype of T. That is, list[str] is a subtype of Iterable[str] using the form from typing import Union (as op- posed to doing just import typing or import typing as t or from typing import *). For brevity, we often omit imports from typing or collections.abc in code For more information about stubs, see Stub files. 1.1.7 Next steps If you are in a hurry and don’t want to read lots of documentation before getting started, here are some pointers to quick learning0 码力 | 234 页 | 913.89 KB | 1 年前3
Django 2.2.x DocumentationController the “view”, and the View the “template”. How come you don’t use the standard names?does – why doesn’t Django? Why did you write all of Django from scratch, instead of development version? FAQ: Using Django Why do I get an error about importing DJANGO_SETTINGS_MODULE? I can’t stand your template language. Do I have to use it? Do I have to use your model/database layer? How do available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can I go to get help? Why hasn’t my message appeared on django-users? Nobody on django-users answered my question 0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 2.1.x DocumentationController the “view”, and the View the “template”. How come you don’t use the standard names?does – why doesn’t Django? Why did you write all of Django from scratch, instead of development version? FAQ: Using Django Why do I get an error about importing DJANGO_SETTINGS_MODULE? I can’t stand your template language. Do I have to use it? Do I have to use your model/database layer? How do available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can I go to get help? Why hasn’t my message appeared on django-users? Nobody on django-users answered my question 0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 2.1.x Documentationthis document is to give you enough technical specifics to understand how Django works, but this isn’t intended to be a tutorial or reference – but we’ve got both! When you’re ready to start a project, you command looks at all your available models and creates tables in your database for whichever tables don’t already exist, as well as optionally providing much richer schema control. 2.1.3 Enjoy the free API philosophy here is that your site is edited by a staff, or a client, or maybe just you – and you don’t want to have to deal with creating backend interfaces just to manage content. One typical workflow0 码力 | 1910 页 | 6.49 MB | 1 年前3
Django 1.11.x DocumentationController the “view”, and the View the “template”. How come you don’t use the standard names?does – why doesn’t Django? Why did you write all of Django from scratch, instead of development version? FAQ: Using Django Why do I get an error about importing DJANGO_SETTINGS_MODULE? I can’t stand your template language. Do I have to use it? Do I have to use your model/database layer? How do available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can I go to get help? Why hasn’t my message appeared on django-users? Nobody on django-users answered my question 0 码力 | 2747 页 | 2.67 MB | 1 年前3
Django 2.0.x DocumentationController the “view”, and the View the “template”. How come you don’t use the standard names?does – why doesn’t Django? Why did you write all of Django from scratch, instead of development version? FAQ: Using Django Why do I get an error about importing DJANGO_SETTINGS_MODULE? I can’t stand your template language. Do I have to use it? Do I have to use your model/database layer? How do available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can I go to get help? Why hasn’t my message appeared on django-users? Nobody on django-users answered my question 0 码力 | 2746 页 | 2.67 MB | 1 年前3
Django 1.11.x Documentationthis document is to give you enough technical specifics to understand how Django works, but this isn’t intended to be a tutorial or reference – but we’ve got both! When you’re ready to start a project, you command looks at all your available models and creates tables in your database for whichever tables don’t already exist, as well as optionally providing much richer schema control. 2.1.3 Enjoy the free API philosophy here is that your site is edited by a staff, or a client, or maybe just you – and you don’t want to have to deal with creating backend interfaces just to manage content. One typical workflow0 码力 | 1878 页 | 6.40 MB | 1 年前3
共 562 条
- 1
- 2
- 3
- 4
- 5
- 6
- 57













