From 4d6847eb93aa269130ad803fb50be99c4a7508d0 Mon Sep 17 00:00:00 2001 From: Raphaƫl Barrois Date: Sun, 24 Mar 2013 20:02:08 +0100 Subject: Default Sequence.type to int (Closes #50). --- factory/declarations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'factory') diff --git a/factory/declarations.py b/factory/declarations.py index 2b1fc05..a284930 100644 --- a/factory/declarations.py +++ b/factory/declarations.py @@ -168,7 +168,7 @@ class Sequence(OrderedDeclaration): type (function): A function converting an integer into the expected kind of counter for the 'function' attribute. """ - def __init__(self, function, type=str): + def __init__(self, function, type=int): super(Sequence, self).__init__() self.function = function self.type = type -- cgit v1.2.3