From 99ffa8c49df4baa9681d649ce0b19b6d3b5ad99a Mon Sep 17 00:00:00 2001 From: Carl Meyer Date: Thu, 12 Jan 2012 09:01:46 -0700 Subject: Added support for staticmethods on factories as well. --- factory/containers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'factory') diff --git a/factory/containers.py b/factory/containers.py index 847b2c0..68e1e9f 100644 --- a/factory/containers.py +++ b/factory/containers.py @@ -112,7 +112,7 @@ class DeclarationDict(dict): is private (name starts with '_') or a classmethod or staticmethod. """ - if isinstance(value, classmethod): + if isinstance(value, (classmethod, staticmethod)): return False elif isinstance(value, declarations.OrderedDeclaration): return True -- cgit v1.2.3