From 93fc03d9e0e1fc0840f7d1b975216f3b174e9126 Mon Sep 17 00:00:00 2001 From: XatMassacrE Date: Tue, 11 Jul 2017 10:27:36 +0800 Subject: [PATCH 1/2] Fix doc typo --- docs/types/objecttypes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types/objecttypes.rst b/docs/types/objecttypes.rst index 1c05834d..11dcfe2b 100644 --- a/docs/types/objecttypes.rst +++ b/docs/types/objecttypes.rst @@ -52,7 +52,7 @@ field is the ``resolve_{field_name}`` method on the ``ObjectType``. By default resolvers take the arguments ``args``, ``context`` and ``info``. -NOTE: The resolvers on a ``ObjectType`` are always treated as ``staticmethod``s, +NOTE: The resolvers on a ``ObjectType`` are always treated as ``staticmethods``, so the first argument to the resolver method ``self`` (or ``root``) need not be an actual instance of the ``ObjectType``. From dc5de1f5036258725e4d56c86e3f57c4828c63f3 Mon Sep 17 00:00:00 2001 From: XatMassacrE Date: Tue, 11 Jul 2017 11:08:39 +0800 Subject: [PATCH 2/2] Fix doc typo --- docs/types/objecttypes.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/types/objecttypes.rst b/docs/types/objecttypes.rst index 11dcfe2b..2b3bce23 100644 --- a/docs/types/objecttypes.rst +++ b/docs/types/objecttypes.rst @@ -52,7 +52,7 @@ field is the ``resolve_{field_name}`` method on the ``ObjectType``. By default resolvers take the arguments ``args``, ``context`` and ``info``. -NOTE: The resolvers on a ``ObjectType`` are always treated as ``staticmethods``, +NOTE: The resolvers on a ``ObjectType`` are always treated as ``staticmethod``\ s, so the first argument to the resolver method ``self`` (or ``root``) need not be an actual instance of the ``ObjectType``.