Skip to content

Commit

Permalink
Format and document python and rust.
Browse files Browse the repository at this point in the history
	modified:   docs/lavalink_rs.html
	modified:   docs/lavalink_rs/model/events.html
	modified:   docs/lavalink_rs/model/http.html
	modified:   docs/lavalink_rs/model/player.html
	modified:   docs/lavalink_rs/model/search.html
	modified:   docs/lavalink_rs/model/track.html
	modified:   docs/search.js
	modified:   lavalink_rs/model/http.pyi
	modified:   lavalink_rs/model/player.pyi
	modified:   lavalink_rs/model/track.pyi
	modified:   src/client.rs
  • Loading branch information
vicky5124 committed Apr 30, 2024
1 parent 3f65d05 commit 11129a8
Show file tree
Hide file tree
Showing 11 changed files with 1,174 additions and 902 deletions.
461 changes: 315 additions & 146 deletions docs/lavalink_rs.html

Large diffs are not rendered by default.

380 changes: 190 additions & 190 deletions docs/lavalink_rs/model/events.html

Large diffs are not rendered by default.

279 changes: 160 additions & 119 deletions docs/lavalink_rs/model/http.html

Large diffs are not rendered by default.

352 changes: 183 additions & 169 deletions docs/lavalink_rs/model/player.html

Large diffs are not rendered by default.

394 changes: 197 additions & 197 deletions docs/lavalink_rs/model/search.html

Large diffs are not rendered by default.

194 changes: 118 additions & 76 deletions docs/lavalink_rs/model/track.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/search.js

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion lavalink_rs/model/http.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ import typing as t

from lavalink_rs.model.player import Filters, ConnectionInfo

JSON: t.TypeAlias = t.Union[t.Dict[str, "JSON"], t.List["JSON"], str, int, float, bool, None]
JSON: t.TypeAlias = t.Union[
t.Dict[str, "JSON"], t.List["JSON"], str, int, float, bool, None
]

class UpdatePlayer:
end_time: t.Optional[int]
Expand Down
4 changes: 3 additions & 1 deletion lavalink_rs/model/player.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import typing as t
from lavalink_rs import GuildId
from lavalink_rs.model.track import TrackData

JSON: t.TypeAlias = t.Union[t.Dict[str, "JSON"], t.List["JSON"], str, int, float, bool, None]
JSON: t.TypeAlias = t.Union[
t.Dict[str, "JSON"], t.List["JSON"], str, int, float, bool, None
]

class Player:
track: t.Optional[TrackData]
Expand Down
4 changes: 3 additions & 1 deletion lavalink_rs/model/track.pyi
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import typing as t

JSON: t.TypeAlias = t.Union[t.Dict[str, "JSON"], t.List["JSON"], str, int, float, bool, None]
JSON: t.TypeAlias = t.Union[
t.Dict[str, "JSON"], t.List["JSON"], str, int, float, bool, None
]

class TrackLoadType:
Track: TrackLoadType
Expand Down
2 changes: 1 addition & 1 deletion src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ impl LavalinkClient {
e.print_and_set_sys_last_vars(py);
});
let _ = tx.send(crate::python::node::Node {
inner: client2.get_node_by_index(0).unwrap().clone()
inner: client2.get_node_by_index(0).unwrap().clone(),
});
}
Ok(x) => {
Expand Down

0 comments on commit 11129a8

Please sign in to comment.