Compare commits

..

2 Commits

2 changed files with 3 additions and 3 deletions

View File

@ -882,7 +882,7 @@ impl Nac3 {
.call1((
builtins_mod.getattr("globals")
.and_then(|v| v.call0())
.and_then(|v| v.get_item("_ConstGenericDummy"))
.and_then(|v| v.get_item("_ConstGenericMarker"))
.unwrap(),
))
.and_then(|v| v.extract())

View File

@ -44,11 +44,11 @@ def Some(v: T) -> Option[T]:
none = Option(None)
class _ConstGenericDummy:
class _ConstGenericMarker:
pass
def ConstGeneric(name, constraint):
return TypeVar(name, _ConstGenericDummy, constraint)
return TypeVar(name, _ConstGenericMarker, constraint)
def round_away_zero(x):
if x >= 0.0: