mirror of
https://github.com/erg-lang/erg.git
synced 2025-08-04 10:49:54 +00:00
fix: constant attribute searching bugs
This commit is contained in:
parent
09276a25a7
commit
ee0366cfb4
10 changed files with 130 additions and 44 deletions
|
@ -42,7 +42,7 @@ time = pyimport "time"
|
|||
fromisoformat: (time_string: Str) -> .Time
|
||||
replace: (self: .Time, hour := Nat, minute := Nat, second := Nat, microsecond := Nat, tzinfo := .TZInfo or NoneType) -> .Time
|
||||
isoformat: (self: .Time, timespec := Str) -> Str
|
||||
.DateTime = 'dateTime': ClassType
|
||||
.DateTime = 'datetime': ClassType
|
||||
.DateTime.
|
||||
__call__: (year: Nat, month: Nat, day: Nat, hour := Nat, minute := Nat, second := Nat, microsecond := Nat, tzinfo := .TZInfo or NoneType) -> .DateTime
|
||||
today!: () => .DateTime
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue