MCPcopy Index your code
hub / github.com/plotly/plotly.py / __init__

Method __init__

_plotly_utils/basevalidators.py:843–877  ·  view source on GitHub ↗
(
        self,
        plotly_name,
        parent_name,
        min=None,
        max=None,
        extras=None,
        array_ok=False,
        **kwargs,
    )

Source from the content-addressed store, hash-verified

841 """
842
843 def __init__(
844 self,
845 plotly_name,
846 parent_name,
847 min=None,
848 max=None,
849 extras=None,
850 array_ok=False,
851 **kwargs,
852 ):
853 super(IntegerValidator, self).__init__(
854 plotly_name=plotly_name, parent_name=parent_name, **kwargs
855 )
856
857 # Handle min
858 if min is None and max is not None:
859 # Max was specified, so make min -inf
860 self.min_val = -sys.maxsize - 1
861 else:
862 self.min_val = min
863
864 # Handle max
865 if max is None and min is not None:
866 # Min was specified, so make min inf
867 self.max_val = sys.maxsize
868 else:
869 self.max_val = max
870
871 if min is not None or max is not None:
872 self.has_min_max = True
873 else:
874 self.has_min_max = False
875
876 self.extras = extras if extras is not None else []
877 self.array_ok = array_ok
878
879 def description(self):
880 desc = """\

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected