Loading PKG-INFO +1 −1 Original line number Diff line number Diff line Metadata-Version: 2.1 Name: mypy Version: 0.650 Version: 0.660 Summary: Optional static typing for Python Home-page: http://www.mypy-lang.org/ Author: Jukka Lehtosalo Loading docs/source/additional_features.rst +2 −2 Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ do **not** work: attribute: int @dataclass_wrapper class DynamicallyDecoarted: class DynamicallyDecorated: """ Mypy doesn't recognize this as a dataclass because it is decorated by a function returning `dataclass` rather than by `dataclass` itself. Loading @@ -103,7 +103,7 @@ do **not** work: attribute: int AliasDecorated(attribute=1) # error: Unexpected keyword argument DynamicallyDecoarted(attribute=1) # error: Unexpected keyword argument DynamicallyDecorated(attribute=1) # error: Unexpected keyword argument .. _attrs_package: Loading docs/source/cheat_sheet.rst +5 −2 Original line number Diff line number Diff line Loading @@ -46,9 +46,12 @@ Built-in types # Use Optional[] for values that could be None x = some_function() # type: Optional[str] # Mypy understands a value can't be None in an if-statement if x is not None: print x print x.upper() # If a value can never be None due to some invariants, use an assert assert x is not None print x.upper() Functions ********* Loading docs/source/cheat_sheet_py3.rst +5 −2 Original line number Diff line number Diff line Loading @@ -72,9 +72,12 @@ Built-in types # Use Optional[] for values that could be None x: Optional[str] = some_function() # Mypy understands a value can't be None in an if-statement if x is not None: print(x) print(x.upper()) # If a value can never be None due to some invariants, use an assert assert x is not None print(x.upper()) Functions ********* Loading docs/source/command_line.rst +0 −17 Original line number Diff line number Diff line Loading @@ -451,23 +451,6 @@ beyond what incremental mode can offer, try running mypy in By default, mypy will ignore cache data generated by a different version of mypy. This flag disables that behavior. .. _quick-mode: ``--quick-and-dirty`` This flag enables a **deprecated**, unsafe variant of incremental mode. Quick mode is faster than regular incremental mode because it only re-checks modules that were modified since their cache file was last written: regular incremental mode also re-checks all modules that depend on one or more modules that were re-checked. Quick mode is unsafe because it may miss problems caused by a change in a dependency. Quick mode updates the cache, but regular incremental mode ignores cache files written by quick mode. We recommend that you try using the :ref:`mypy_daemon` before attempting to use this feature. Quick mode is deprecated and will soon be removed. .. _advanced-flags: Advanced flags Loading Loading
PKG-INFO +1 −1 Original line number Diff line number Diff line Metadata-Version: 2.1 Name: mypy Version: 0.650 Version: 0.660 Summary: Optional static typing for Python Home-page: http://www.mypy-lang.org/ Author: Jukka Lehtosalo Loading
docs/source/additional_features.rst +2 −2 Original line number Diff line number Diff line Loading @@ -95,7 +95,7 @@ do **not** work: attribute: int @dataclass_wrapper class DynamicallyDecoarted: class DynamicallyDecorated: """ Mypy doesn't recognize this as a dataclass because it is decorated by a function returning `dataclass` rather than by `dataclass` itself. Loading @@ -103,7 +103,7 @@ do **not** work: attribute: int AliasDecorated(attribute=1) # error: Unexpected keyword argument DynamicallyDecoarted(attribute=1) # error: Unexpected keyword argument DynamicallyDecorated(attribute=1) # error: Unexpected keyword argument .. _attrs_package: Loading
docs/source/cheat_sheet.rst +5 −2 Original line number Diff line number Diff line Loading @@ -46,9 +46,12 @@ Built-in types # Use Optional[] for values that could be None x = some_function() # type: Optional[str] # Mypy understands a value can't be None in an if-statement if x is not None: print x print x.upper() # If a value can never be None due to some invariants, use an assert assert x is not None print x.upper() Functions ********* Loading
docs/source/cheat_sheet_py3.rst +5 −2 Original line number Diff line number Diff line Loading @@ -72,9 +72,12 @@ Built-in types # Use Optional[] for values that could be None x: Optional[str] = some_function() # Mypy understands a value can't be None in an if-statement if x is not None: print(x) print(x.upper()) # If a value can never be None due to some invariants, use an assert assert x is not None print(x.upper()) Functions ********* Loading
docs/source/command_line.rst +0 −17 Original line number Diff line number Diff line Loading @@ -451,23 +451,6 @@ beyond what incremental mode can offer, try running mypy in By default, mypy will ignore cache data generated by a different version of mypy. This flag disables that behavior. .. _quick-mode: ``--quick-and-dirty`` This flag enables a **deprecated**, unsafe variant of incremental mode. Quick mode is faster than regular incremental mode because it only re-checks modules that were modified since their cache file was last written: regular incremental mode also re-checks all modules that depend on one or more modules that were re-checked. Quick mode is unsafe because it may miss problems caused by a change in a dependency. Quick mode updates the cache, but regular incremental mode ignores cache files written by quick mode. We recommend that you try using the :ref:`mypy_daemon` before attempting to use this feature. Quick mode is deprecated and will soon be removed. .. _advanced-flags: Advanced flags Loading