Skip to content

Commit

Permalink
Bump alpha number
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Feb 29, 2024
1 parent 1fadea3 commit d8acb66
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
24 changes: 24 additions & 0 deletions dataclasses.krk
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
let KW_ONLY = object()

def _do_the_thing(cls, init, eq):
# Ordered dicts make this awesome
print(cls.__annotations__)
return cls

def dataclass(cls=None, /, *, init=True, eq=True):
def _wrap(cls):
return _do_the_thing(cls,init,eq)
if cls is None:
return _wrap
return _wrap(cls)

@dataclass
class Foo:
foo: int
bar: str
baz: str
qux: bool
def some_method(self):
pass


4 changes: 2 additions & 2 deletions src/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
#define KRK_VERSION_MINOR 5
#define KRK_VERSION_PATCH 0
#define KRK_VERSION_LEVEL 0xa
#define KRK_VERSION_SERIAL 0x0
#define KRK_VERSION_SERIAL 0x1

#define KRK_VERSION_EXTRA_BASE "a0"
#define KRK_VERSION_EXTRA_BASE "a1"

#ifndef KRK_STATIC_ONLY
#define KRK_VERSION_EXTRA KRK_VERSION_EXTRA_BASE
Expand Down
4 changes: 4 additions & 0 deletions timeparse.krk
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
for i in range(100):
for j in range(20):
for k in range(-20,20):
float(f'{i}.{j}e{k}')

0 comments on commit d8acb66

Please sign in to comment.