mirror of
https://github.com/erg-lang/erg.git
synced 2025-09-28 04:09:05 +00:00
Add Bytes
This commit is contained in:
parent
ed96ca9420
commit
dea05ef6e8
4 changed files with 6 additions and 5 deletions
3
crates/erg_compiler/lib/std/_erg_bytes.py
Normal file
3
crates/erg_compiler/lib/std/_erg_bytes.py
Normal file
|
@ -0,0 +1,3 @@
|
|||
class Bytes(bytes):
|
||||
def try_new(*b): # -> Result[Nat]
|
||||
return Bytes(bytes(*b))
|
Loading…
Add table
Add a link
Reference in a new issue