Skip to content

Commit

Permalink
chore: bump versions a10
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Nov 9, 2023
1 parent d84fdff commit 1173bfd
Show file tree
Hide file tree
Showing 6 changed files with 75 additions and 73 deletions.
2 changes: 1 addition & 1 deletion .mina/core.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ includes = [

[project]
name = "avilla-core"
version = "1.0.0a9"
version = "1.0.0a10"
authors = [
{name = "GreyElaina", email = "[email protected]"},
{name = "BlueGlassBlock", email = "[email protected]"},
Expand Down
4 changes: 2 additions & 2 deletions .mina/elizabeth.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
includes = ["avilla/elizabeth"]
raw-dependencies = [
"avilla-core >= 1.0.0a8",
"avilla-core >= 1.0.0a10",
"avilla-standard-qq >= 1.0.0a7"
]

[project]
name = "avilla-elizabeth"
version = "1.0.0a7" # WIP for release.
version = "1.0.0a10" # WIP for release.
authors = [
{name = "GreyElaina", email = "[email protected]"},
{name = "RF-Tar-Railt", email = "[email protected]"}
Expand Down
6 changes: 3 additions & 3 deletions .mina/qqapi.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
includes = ["avilla/qqguild/tencent"]
includes = ["avilla/qqapi"]
raw_dependencies = [
"avilla-core >= 1.0.0a9",
"avilla-core >= 1.0.0a10",
"avilla-standard-qq >= 1.0.0a7"
]

[project]
name = "avilla-qqapi"
version = "1.0.0a9"
version = "1.0.0a10"
authors = [
{name = "RF-Tar-Railt", email = "[email protected]"}
]
Expand Down
4 changes: 2 additions & 2 deletions .mina/satori.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
includes = ["avilla/satori"]
raw_dependencies = [
"avilla-core >= 1.0.0a8",
"avilla-core >= 1.0.0a10",
]

[project]
name = "avilla-satori"
version = "1.0.0a9"
version = "1.0.0a10"
authors = [
{name = "RF-Tar-Railt", email = "[email protected]"}
]
Expand Down
10 changes: 6 additions & 4 deletions avilla/satori/resource.py
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
from __future__ import annotations

from typing import Any

from satori.element import Resource as RawResource

from avilla.core.resource import Resource
from avilla.core.selector import Selector


class SatoriResource(Resource[bytes], RawResource):
def __init__(self, src: str, cache: bool | None = None, timeout: str | None = None):
RawResource.__init__(self, src, cache, timeout)
def __init__(self, src: str, extra: dict[str, Any] | None = None, cache: bool | None = None, timeout: str | None = None):
RawResource.__init__(self, src, extra, cache, timeout)


class SatoriImageResource(SatoriResource):
def __init__(
self,
src: str,
extra: dict[str, Any] | None = None,
cache: bool | None = None,
timeout: str | None = None,
width: int | None = None,
height: int | None = None,
):
super().__init__(src, cache, timeout)
super().__init__(src, extra, cache, timeout)
self.width = width
self.height = height

Expand Down
122 changes: 61 additions & 61 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1173bfd

Please sign in to comment.