<s> from __future__ import absolute_import <EOL> from openpyxl . compat import basestring <EOL> from openpyxl . descriptors . nested import ( <EOL> NestedMinMax <EOL> ) <EOL> from openpyxl . descriptors import Typed <EOL> from . data_source import NumFmt <EOL> """<STR_LIT>""" <EOL> class NestedGapAmount ( NestedMinMax ) : <EOL> allow_none = True <EOL> min = <NUM_LIT:0> <EOL> max = <NUM_LIT> <EOL> class NestedOverlap ( NestedMinMax ) : <EOL> allow_none = True <EOL> min = - <NUM_LIT:100> <EOL> max = <NUM_LIT:100> <EOL> class NumberFormatDescriptor ( Typed ) : <EOL> """<STR_LIT>""" <EOL> expected_type = NumFmt <EOL> allow_none = True <EOL> def __set__ ( self , instance , value ) : <EOL> if isinstance ( value , basestring ) : <EOL> value = NumFmt ( value ) <EOL> super ( NumberFormatDescriptor , self ) . __set__ ( instance , value ) </s>
