Skip to content

Commit

Permalink
correct docs deps and update factorio-data
Browse files Browse the repository at this point in the history
  • Loading branch information
redruin1 committed Jun 24, 2024
1 parent 1e83792 commit 4813362
Show file tree
Hide file tree
Showing 11 changed files with 6 additions and 11 deletions.
3 changes: 2 additions & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
sphinx == 7.2.4
sphinx-rtd-theme < 2.0.0
sphinx-copybutton == 0.5.2
autodoc_pydantic == 2.2.0
autodoc_pydantic == 2.2.0
furo
2 changes: 1 addition & 1 deletion docs/source/reference/utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Vector Operations

.. autofunction:: distance

.. autofunction:: rotate_vector
.. autofunction:: rotate_point

.. autofunction:: dot_product

Expand Down
12 changes: 3 additions & 9 deletions draftsman/classes/exportable.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,12 +129,6 @@ def is_valid(self) -> bool:
>>> c = Container("wooden-chest")
>>> c.is_valid
False
>>> c.validate()
>>> c.is_valid
True
>>> c.bar = 10 # Even though 10 is a valid value, validate() must
>>> c.is_valid # be called again for draftsman to know this
False
Read only.
"""
Expand Down Expand Up @@ -193,7 +187,7 @@ def validate(self, mode: ValidationMode, force: bool) -> ValidationResult:
coerce data into correct forms from shorthands, and raises exceptions.
Method that attempts to first coerce the object into a known form, and
then checks the values of its attributes for correctness. If unable to
do so, this function raises :py:error:`.DataFormatError`. Otherwise,
do so, this function raises :py:class:`.DataFormatError`. Otherwise,
no errors are raised and :py:attr:`.is_valid` is set to ``True``.
:example:
Expand All @@ -202,12 +196,12 @@ def validate(self, mode: ValidationMode, force: bool) -> ValidationResult:
>>> from draftsman.entity import Container
>>> from draftsman.error import DataFormatError
>>> c = Container("wooden-chest")
>>> c = Container("wooden-chest", validate_assignment="none")
>>> c.bar = "incorrect"
>>> try:
... c.validate().reissue_all()
... except DataFormatError as e:
... print("wrong! {}", e)
... print("wrong!")
wrong!
:param mode: How strict to be when valiating the object, corresponding
Expand Down
Binary file modified draftsman/data/entities.pkl
Binary file not shown.
Binary file modified draftsman/data/fluids.pkl
Binary file not shown.
Binary file modified draftsman/data/instruments.pkl
Binary file not shown.
Binary file modified draftsman/data/items.pkl
Binary file not shown.
Binary file modified draftsman/data/modules.pkl
Binary file not shown.
Binary file modified draftsman/data/recipes.pkl
Binary file not shown.
Binary file modified draftsman/data/signals.pkl
Binary file not shown.
Binary file modified draftsman/data/tiles.pkl
Binary file not shown.

0 comments on commit 4813362

Please sign in to comment.