mirror of
https://github.com/erg-lang/erg.git
synced 2025-10-01 21:21:10 +00:00
Support Python 3.9 as tier-2
This commit is contained in:
parent
bf48ed0cb2
commit
54dbd1ec22
10 changed files with 26 additions and 187 deletions
|
@ -24,7 +24,7 @@ class Nat(Int):
|
|||
class NatMut(IntMut): # and Nat
|
||||
value: Nat
|
||||
|
||||
def __init__(self, n):
|
||||
def __init__(self, n: Nat):
|
||||
self.value = n
|
||||
def __repr__(self):
|
||||
return self.value.__repr__()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue