Skip to content

Commit

Permalink
typing
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed Oct 2, 2023
1 parent 74393b8 commit 776c1db
Show file tree
Hide file tree
Showing 7 changed files with 421 additions and 434 deletions.
3 changes: 2 additions & 1 deletion .mypy.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
# Copyright (c) Paul Horton. All Rights Reserved.

[mypy]
plugins = typing_protocol_intersection.mypy_plugin

files = serializable/
files = serializable/, tests/model.py

show_error_codes = True
pretty = True
Expand Down
4 changes: 2 additions & 2 deletions docs/customising-structure.rst
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ For example:

.. code-block:: python
@property # type: ignore[misc]
@property
@serializable.view(SchemaVersion1)
def address(self) -> Optional[str]:
return self._address
Expand All @@ -222,7 +222,7 @@ Further to the above, you can vary the ``None`` value per View as follows:

.. code-block:: python
@property # type: ignore[misc]
@property
@serializable.include_none(SchemaVersion2)
@serializable.include_none(SchemaVersion3, "RUBBISH")
def email(self) -> Optional[str]:
Expand Down
Loading

0 comments on commit 776c1db

Please sign in to comment.