Skip to content

Commit

Permalink
Minor
Browse files Browse the repository at this point in the history
  • Loading branch information
leroyvn committed Aug 26, 2024
1 parent 1800784 commit 8f63850
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

> S'il vous plaît, dessine-moi un mouton.
The narrator of Antoine de Saint-Exupéry's Little Prince probably dreamt of a factory like this one...
The narrator of Antoine de Saint-Exupéry's Little Prince probably dreamt of a
factory like this one...

[![PyPI version](https://img.shields.io/pypi/v/dessinemoi?color=blue)](https://pypi.org/project/dessinemoi)
[![Conda version](https://img.shields.io/conda/v/conda-forge/dessinemoi?color=blue)](https://anaconda.org/conda-forge/dessinemoi)
Expand All @@ -24,7 +25,7 @@ born from the need to create dynamically object trees from nested dictionaries

- Create a `Factory` object and register types to it
- Use dictionaries to create objects from the factory
- Create `attrs`-compatible converters to automatically convert dictionaries to
- Create *attrs*-compatible converters to automatically convert dictionaries to
instances of registered types
- Customize factories to your needs

Expand Down
2 changes: 2 additions & 0 deletions requirements-dev.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
alabaster==0.7.16
Expand Down
2 changes: 2 additions & 0 deletions requirements.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
# features: []
# all-features: false
# with-sources: false
# generate-hashes: false
# universal: false

-e file:.
attrs==23.2.0
Expand Down
3 changes: 1 addition & 2 deletions tests/test_dessinemoi.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ def test_factory_lazy(factory):
assert isinstance(factory.create("lazy"), LazyTypeTest)

# Lazy types require an ID
aliases = (True,)
with pytest.raises(ValueError):
factory.register(
f"{__name__}.LazyTypeTest",
Expand Down Expand Up @@ -272,7 +271,7 @@ def test_lazy_type():
)
# -- Absolute path with nested submodules
assert dessinemoi.LazyType.from_str("foo.bar.baz") == dessinemoi.LazyType(
mod=f"foo.bar", attr="baz"
mod="foo.bar", attr="baz"
)
# -- Relative imports are not allowed
with pytest.raises(ValueError):
Expand Down

0 comments on commit 8f63850

Please sign in to comment.