Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto help generations #172

Merged
merged 19 commits into from
Oct 29, 2024
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: added doc strings.
Almas-Ali committed Jul 23, 2024
commit 160c6ee403e7616d8b2d9b81c1d45459c34228ac
2 changes: 2 additions & 0 deletions core/builtin_classes/file_object.py
Original file line number Diff line number Diff line change
@@ -9,6 +9,8 @@


class FileObject(BuiltInObject):
"""Buili-in file operation object."""

file: IO[str]

@operator("__constructor__")
2 changes: 2 additions & 0 deletions core/builtin_classes/json_object.py
Original file line number Diff line number Diff line change
@@ -8,6 +8,8 @@


class JSONObject(BuiltInObject):
"""Buili-in json manipulation object."""

@operator("__constructor__")
@check([], [])
def constructor(self) -> RTResult[Value]:
2 changes: 2 additions & 0 deletions core/builtin_classes/requests_object.py
Original file line number Diff line number Diff line change
@@ -10,6 +10,8 @@


class RequestsObject(BuiltInObject):
"""Buili-in API requests object."""

@operator("__constructor__")
@check([], [])
def constructor(self) -> RTResult[Value]:
2 changes: 1 addition & 1 deletion core/builtin_classes/string_object.py
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@


class StringObject(BuiltInObject):
value: str
"""Buili-in String manipulation object."""

@operator("__constructor__")
@check([String], [String("")])