Compare commits

..

2 Commits

2 changed files with 3 additions and 3 deletions

View File

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

View File

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