File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,13 @@ class Tolerance(Data):
7373 _instance = None
7474 _is_inited = False
7575
76+ SUPPORTED_UNITS = ["M" , "MM" ]
77+ """{"M", "MM"}: Default tolerances are defined in relation to length units.
78+
79+ Currently, only meters ("M") and millimeters ("MM") are supported.
80+
81+ """
82+
7683 ABSOLUTE = 1e-9
7784 """float: Determines when a number is small enough to be considered zero.
7885 """
@@ -114,9 +121,9 @@ class Tolerance(Data):
114121 """
115122
116123 def __new__ (cls , * args , ** kwargs ):
117- if not isinstance ( cls ._instance , cls ) :
124+ if not cls ._instance :
118125 cls ._instance = object .__new__ (cls , * args , ** kwargs )
119- cls ._inited = False
126+ cls ._is_inited = False
120127 return cls ._instance
121128
122129 @property
You can’t perform that action at this time.
0 commit comments