Mypy 1.8.0 Documentationfundamental aspect of the PEP 484 type system: 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 you have a class Child that inherits from Parent, then a value of type Child can be assigned to a variable of type Parent. For example, a RuntimeError instance can be passed to a function that is annotated normalize_id function above – mypy understands basic isinstance checks and so can infer that the user_id variable was of type int in the if-branch and of type str in the else-branch. As another example, consider0 码力 | 234 页 | 902.89 KB | 1 年前3
Mypy 1.8.0 Documentationcollections Redefinitions with incompatible types Invariance vs covariance Declaring a supertype as variable type Complex type tests Python version and system platform checks Displaying the type of an expression Incompatible overrides Unreachable code Narrowing and inner functions Supported Python features Runtime definition of methods and functions Error codes Displaying error codes Silencing errors based on error codes attribute exists in each union item [union-attr] Check that name is defined [name-defined] Check that a variable is not used before it’s defined [used-before-def] Check arguments in calls [call-arg] Check argument0 码力 | 318 页 | 271.55 KB | 1 年前3
Mypy 1.10.0+dev Documentationcollections Redefinitions with incompatible types Invariance vs covariance Declaring a supertype as variable type Complex type tests Python version and system platform checks Displaying the type of an expression Incompatible overrides Unreachable code Narrowing and inner functions Supported Python features Runtime definition of methods and functions Error codes Silencing errors based on error codes Enabling/disabling attribute exists in each union item [union-attr] Check that name is defined [name-defined] Check that a variable is not used before it’s defined [used-before-def] Check arguments in calls [call-arg] Check argument0 码力 | 318 页 | 270.84 KB | 1 年前3
Mypy 1.10.0+dev Documentationfundamental aspect of the PEP 484 type system: 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 you have a class Child that inherits from Parent, then a value of type Child can be assigned to a variable of type Parent. For example, a RuntimeError instance can be passed to a function that is annotated normalize_id function above – mypy understands basic isinstance checks and so can infer that the user_id variable was of type int in the if-branch and of type str in the else-branch. As another example, consider0 码力 | 234 页 | 913.89 KB | 1 年前3
PyMuPDF 1.24.2 DocumentationWindows: – Install Visual Studio 2019. If not installed in a standard location, set environmental variable PYMUPDF_SETUP_DEVENV to the location of the devenv.com binary. – Having other installed versions To enable OCR functions in PyMuPDF, the software must be installed and the system envi- ronment variable "TESSDATA_PREFIX" must be defined and contain the tessdata folder name of the Tesseract installation Notes about using a non-default MuPDF Using a non-default build of MuPDF by setting environmental variable PYMUPDF_SETUP_MUPDF_BUILD can cause various things to go wrong and so is not generally supported:0 码力 | 565 页 | 6.84 MB | 1 年前3
Conda 25.1.x DocumentationPATH environment variable during an All Users installation has been disabled. This was done to address a security exploit. You can still add Anaconda to the PATH environment variable during a Just Me installation � Note When installing Anaconda, you have the option to “Add Anaconda to my PATH environment variable.” This is not recommended because it appends Anaconda to PATH. When the installer appends to PATH not recommended since deeper levels of stacking are more likely to lead to confusion. Environment variable for DLL loading verification If you don't want to activate your environment and you want Python0 码力 | 822 页 | 5.20 MB | 8 月前3
Conda 24.11.x DocumentationPATH environment variable during an All Users installation has been disabled. This was done to address a security exploit. You can still add Anaconda to the PATH environment variable during a Just Me installation � Note When installing Anaconda, you have the option to “Add Anaconda to my PATH environment variable.” This is not recommended because it appends Anaconda to PATH. When the installer appends to PATH not recommended since deeper levels of stacking are more likely to lead to confusion. Environment variable for DLL loading verification If you don't want to activate your environment and you want Python0 码力 | 818 页 | 5.21 MB | 8 月前3
Django 2.2.x DocumentationDo I have to use your model/database layer? How do I use image and file fields? How do I make a variable available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can “pipe” (the “|” character). This is called a template filter, and it’s a way to filter the value of a variable. In this case, the date filter formats a Python datetime object in the given format (as found in instead of simply typing “python”, because manage.py sets the DJANGO_SETTINGS_MODULE environment variable, which gives Django the Python import path to your mysite/settings.py file. Once you’re in the0 码力 | 2915 页 | 2.83 MB | 1 年前3
Django 2.1.x DocumentationDo I have to use your model/database layer? How do I use image and file fields? How do I make a variable available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can “pipe” (the “|” character). This is called a template filter, and it’s a way to filter the value of a variable. In this case, the date filter formats a Python datetime object in the given format (as found in instead of simply typing “python”, because manage.py sets the DJANGO_SETTINGS_MODULE environment variable, which gives Django the Python import path to your mysite/settings.py file. Once you’re in the0 码力 | 2790 页 | 2.71 MB | 1 年前3
Django 2.0.x DocumentationDo I have to use your model/database layer? How do I use image and file fields? How do I make a variable available to all my templates? FAQ: Getting Help How do I do X? Why doesn’t Y work? Where can “pipe” (the “|” character). This is called a template filter, and it’s a way to filter the value of a variable. In this case, the date filter formats a Python datetime object in the given format (as found in instead of simply typing “python”, because manage.py sets the DJANGO_SETTINGS_MODULE environment variable, which gives Django the Python import path to your mysite/settings.py file. Once you’re in the0 码力 | 2746 页 | 2.67 MB | 1 年前3
共 401 条
- 1
- 2
- 3
- 4
- 5
- 6
- 41













