Mypy 1.8.0 Documentation
does not interfere with the way your program would otherwise run. Think of type hints as similar to comments! You can always use the Python interpreter to run your code, even if mypy reports errors. Mypy some mypy errors, either by inserting annotations requested by mypy or by adding # type: ignore comments to silence errors you don’t want to fix now. We’ll mention some tips for getting mypy passing on doesn’t have types. If you only import that module in one or two places, you can use # type: ignore comments. For example, here we ignore an error about a third-party module frobnicate that doesn’t have stubs0 码力 | 234 页 | 902.89 KB | 1 年前3Mypy 1.10.0+dev Documentation
does not interfere with the way your program would otherwise run. Think of type hints as similar to comments! You can always use the Python interpreter to run your code, even if mypy reports errors. Mypy classes and multiple inheritance Slots Annotation issues at runtime String literal types and type comments Future annotations import (PEP 563) typing.TYPE_CHECKING Class name forward references Import cycles some mypy errors, either by inserting annotations requested by mypy or by adding # type: ignore comments to silence errors you don’t want to fix now. We’ll mention some tips for getting mypy passing on0 码力 | 318 页 | 270.84 KB | 1 年前3Mypy 1.8.0 Documentation
does not interfere with the way your program would otherwise run. Think of type hints as similar to comments! You can always use the Python interpreter to run your code, even if mypy reports errors. Mypy classes and multiple inheritance Slots Annotation issues at runtime String literal types and type comments Future annotations import (PEP 563) typing.TYPE_CHECKING Class name forward references Import cycles some mypy errors, either by inserting annotations requested by mypy or by adding # type: ignore comments to silence errors you don’t want to fix now. We’ll mention some tips for getting mypy passing on0 码力 | 318 页 | 271.55 KB | 1 年前3Mypy 1.10.0+dev Documentation
does not interfere with the way your program would otherwise run. Think of type hints as similar to comments! You can always use the Python interpreter to run your code, even if mypy reports errors. Mypy some mypy errors, either by inserting annotations requested by mypy or by adding # type: ignore comments to silence errors you don’t want to fix now. We’ll mention some tips for getting mypy passing on doesn’t have types. If you only import that module in one or two places, you can use # type: ignore comments. For example, here we ignore an error about a third-party module frobnicate that doesn’t have stubs0 码力 | 234 页 | 913.89 KB | 1 年前3Jinja2 Documentation Release 2.10
Statements. line_comment_prefix If given and a string, this will be used as prefix for line based comments. See also Line Statements. New in version 2.2. trim_blocks If this is set to True the first newline %} for Statements • {{ ... }} for Expressions to print to the template output • {# ... #} for Comments not included in the template output • # ... ## for Line Statements 5.2 Variables Template variables index is divisibleby(3) %} The List of Builtin Tests below describes all the builtin tests. 5.5 Comments To comment-out part of a line in a template, use the comment syntax which is by default set to0 码力 | 148 页 | 475.08 KB | 1 年前3Django 4.2.x Documentation
Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides Day-based archive page – displays all entries in the given day. Comment action – handles posting comments to a given entry. In our poll application, we’ll have the following four views: Question “index” Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install0 码力 | 3305 页 | 3.16 MB | 1 年前3Django 4.1.x Documentation
Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides Day-based archive page – displays all entries in the given day. Comment action – handles posting comments to a given entry. In our poll application, we’ll have the following four views: Question “index” Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install0 码力 | 3240 页 | 3.13 MB | 1 年前3Django 4.0.x Documentation
Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides Day-based archive page – displays all entries in the given day. Comment action – handles posting comments to a given entry. In our poll application, we’ll have the following four views: Question “index” Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install0 码力 | 3184 页 | 3.14 MB | 1 年前3Django 3.2.x Documentation
Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions “How-to” guides Day-based archive page – displays all entries in the given day. Comment action – handles posting comments to a given entry. In our poll application, we’ll have the following four views: Question “index” Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools Asynchronous support Async views Async safety Async adapter functions How to install0 码力 | 3121 页 | 3.08 MB | 1 年前3Django 1.11.x Documentation
Disconnecting signals System check framework Writing your own checks External packages Localflavor Comments Formtools “How-to” guides Authentication using REMOTE_USER Configuration Using REMOTE_USER on you are still using Python 2.7, you will need to adjust the code samples slightly, as described in comments. See How to install Django for advice on how to remove older versions of Django and install a newer Day-based archive page – displays all entries in the given day. Comment action – handles posting comments to a given entry. In our poll application, we’ll have the following four views: Question “index”0 码力 | 2747 页 | 2.67 MB | 1 年前3
共 308 条
- 1
- 2
- 3
- 4
- 5
- 6
- 31