Skip to content

Commit

Permalink
chore: Bump version, make mypy happy, and regenerate docs
Browse files Browse the repository at this point in the history
  • Loading branch information
N3rdL0rd committed Dec 28, 2024
1 parent 24c3a9b commit 59b2b23
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion crashlink/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def pickle(self, args: List[str]) -> None:
print("Usage: pickle <path>")
return
try:
import dill
import dill # type: ignore

with open(args[0], "wb") as f:
dill.dump(self.code, f)
Expand Down
2 changes: 1 addition & 1 deletion crashlink/globals.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def _is_debug() -> bool:
)


VERSION: str = "v0.0.1a"
VERSION: str = "v0.0.2a"
"""
The version of crashlink.
"""
Expand Down
14 changes: 10 additions & 4 deletions docs/crashlink/core.html
Original file line number Diff line number Diff line change
Expand Up @@ -541,10 +541,13 @@ <h3>Ancestors</h3>
b&#34;&#34;.join([typ.serialise() for typ in self.types]),
b&#34;&#34;.join([typ.serialise() for typ in self.global_types]),
b&#34;&#34;.join([native.serialise() for native in self.natives]),
b&#34;&#34;.join([func.serialise() for func in self.functions]),
b&#34;&#34;.join([constant.serialise() for constant in self.constants]),
]
)
if USE_TQDM:
res += b&#34;&#34;.join([func.serialise() for func in tqdm(self.functions)])
else:
res += b&#34;&#34;.join([func.serialise() for func in self.functions])
res += b&#34;&#34;.join([constant.serialise() for constant in self.constants])
dbg_print(f&#34;Final size: {hex(len(res))}&#34;)
dbg_print(f&#34;{(datetime.now() - start_time).total_seconds()}s elapsed.&#34;)
return res
Expand Down Expand Up @@ -1013,10 +1016,13 @@ <h3>Methods</h3>
b&#34;&#34;.join([typ.serialise() for typ in self.types]),
b&#34;&#34;.join([typ.serialise() for typ in self.global_types]),
b&#34;&#34;.join([native.serialise() for native in self.natives]),
b&#34;&#34;.join([func.serialise() for func in self.functions]),
b&#34;&#34;.join([constant.serialise() for constant in self.constants]),
]
)
if USE_TQDM:
res += b&#34;&#34;.join([func.serialise() for func in tqdm(self.functions)])
else:
res += b&#34;&#34;.join([func.serialise() for func in self.functions])
res += b&#34;&#34;.join([constant.serialise() for constant in self.constants])
dbg_print(f&#34;Final size: {hex(len(res))}&#34;)
dbg_print(f&#34;{(datetime.now() - start_time).total_seconds()}s elapsed.&#34;)
return res</code></pre>
Expand Down
4 changes: 2 additions & 2 deletions docs/crashlink/errors.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
</summary>
<pre><code class="python">class CrashlinkError(Exception):
&#34;&#34;&#34;
Base exception class for all errors raised by crashlink.
Base exception class for most specific errors raised by crashlink.
&#34;&#34;&#34;</code></pre>
</details>
<div class="desc"><p>Base exception class for all errors raised by crashlink.</p></div>
<div class="desc"><p>Base exception class for most specific errors raised by crashlink.</p></div>
<h3>Ancestors</h3>
<ul class="hlist">
<li>builtins.Exception</li>
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "crashlink"
version = "0.0.1"
version = "0.0.2"
authors = [
{ name="N3rdL0rd", email="[email protected]" },
]
Expand Down

0 comments on commit 59b2b23

Please sign in to comment.