From dbc368d5f621898d06b3d717165c3e27c309d563 Mon Sep 17 00:00:00 2001 From: Roman Mogilatov Date: Thu, 18 Jun 2015 14:55:13 +0300 Subject: [PATCH] Minor updates for static provider docs --- docs/providers/static.rst | 8 ++++---- examples/providers/static.py | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) 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