From 2d95971d9859d384fa8eaf9e9076ce06dd691e77 Mon Sep 17 00:00:00 2001 From: "Eric V. Smith" Date: Sun, 3 Dec 2017 09:44:19 -0500 Subject: [PATCH] Change return value of fields() from a list to a tuple. --- pep-0557.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pep-0557.rst b/pep-0557.rst index 89235a261..5cfed73b2 100644 --- a/pep-0557.rst +++ b/pep-0557.rst @@ -528,7 +528,7 @@ mutable types as default values for fields:: Module level helper functions ----------------------------- -- ``fields(class_or_instance)``: Returns a list of ``Field`` objects +- ``fields(class_or_instance)``: Returns a tuple of ``Field`` objects that define the fields for this Data Class. Accepts either a Data Class, or an instance of a Data Class. Raises `ValueError` if not passed a Data Class or instance of one. Does not return