@@ -608,13 +608,6 @@ class Packer(object):
608608 Convert unicode to bytes with this encoding. (default: 'utf-8')
609609 :param str unicode_errors:
610610 Error handler for encoding unicode. (default: 'strict')
611- :param bool strict_types:
612- If set to true, types will be checked to be exact. Derived classes
613- from serializeable types will not be serialized and will be
614- treated as unsupported type and forwarded to default.
615- Additionally tuples will not be serialized as lists.
616- This is useful when trying to implement accurate serialization
617- for python types.
618611 :param bool use_single_float:
619612 Use single precision float type for float. (default: False)
620613 :param bool autoreset:
@@ -623,10 +616,17 @@ class Packer(object):
623616 :param bool use_bin_type:
624617 Use bin type introduced in msgpack spec 2.0 for bytes.
625618 It also enable str8 type for unicode.
619+ :param bool strict_types:
620+ If set to true, types will be checked to be exact. Derived classes
621+ from serializeable types will not be serialized and will be
622+ treated as unsupported type and forwarded to default.
623+ Additionally tuples will not be serialized as lists.
624+ This is useful when trying to implement accurate serialization
625+ for python types.
626626 """
627627 def __init__ (self , default = None , encoding = 'utf-8' , unicode_errors = 'strict' ,
628- strict_types = False , use_single_float = False , autoreset = True ,
629- use_bin_type = False ):
628+ use_single_float = False , autoreset = True , use_bin_type = False ,
629+ strict_types = False ):
630630 self ._strict_types = strict_types
631631 self ._use_float = use_single_float
632632 self ._autoreset = autoreset
0 commit comments