diff --git a/docs/providers/static.rst b/docs/providers/static.rst index bd61029e..c9e2d5df 100644 --- a/docs/providers/static.rst +++ b/docs/providers/static.rst @@ -24,19 +24,19 @@ Example: from objects.providers import Value - # Provides class - `object` + # Provides class - `object`: cls_provider = Class(object) assert cls_provider() is object - # Provides object - `object()` + # Provides object - `object()`: object_provider = Object(object()) assert isinstance(object_provider(), object) - # Provides function - `len` + # Provides function - `len`: function_provider = Function(len) assert function_provider() is len - # Provides value - `123` + # Provides value - `123`: value_provider = Value(123) assert value_provider() == 123 diff --git a/examples/providers/static.py b/examples/providers/static.py index 42675e0f..941756ed 100644 --- a/examples/providers/static.py +++ b/examples/providers/static.py @@ -6,18 +6,18 @@ from objects.providers import Function from objects.providers import Value -# Provides class - `object` +# Provides class - `object`: cls_provider = Class(object) assert cls_provider() is object -# Provides object - `object()` +# Provides object - `object()`: object_provider = Object(object()) assert isinstance(object_provider(), object) -# Provides function - `len` +# Provides function - `len`: function_provider = Function(len) assert function_provider() is len -# Provides value - `123` +# Provides value - `123`: value_provider = Value(123) assert value_provider() == 123