Skip to content

Commit

Permalink
chore: misskeyのバージョンを変数に
Browse files Browse the repository at this point in the history
  • Loading branch information
yupix committed Apr 17, 2023
1 parent 57c0cf5 commit cbe7737
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mipac/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self, options: CacheConfigData) -> None:


IMisskeyDistribution = Literal['ayuskey', 'm544', 'areionskey', 'official']

IMisskeyVersions = Literal[13, 12, 11]

class ILimits(TypedDict, total=False):
channel_name: int
Expand Down Expand Up @@ -56,7 +56,7 @@ def __init__(
is_ssl: bool = True,
distro: IMisskeyDistribution = 'official',
is_ayuskey: bool = False,
use_version: Literal[13, 12, 11] = 12,
use_version: IMisskeyVersions = 12,
cache: CacheConfigData | None = None,
use_version_autodetect: bool = True,
features: IFeatures | None = None,
Expand All @@ -66,7 +66,7 @@ def __init__(
self.is_ssl: bool = is_ssl
self.host: str = host
self.is_ayuskey: bool = is_ayuskey
self.use_version: Literal[13, 12, 11] = use_version
self.use_version: IMisskeyVersions = use_version
self.cache: CacheConfig = CacheConfig(cache or CacheConfigData())
self.use_version_autodetect: bool = use_version_autodetect
self.features: Features = Features(features) if features else Features()
Expand All @@ -78,7 +78,7 @@ def from_dict(
host: str | None = None,
is_ssl: bool | None = None,
is_ayuskey: bool | None = None,
use_version: Literal[13, 12, 11] | None = None,
use_version: IMisskeyVersions | None = None,
cache: CacheConfigData | None = None,
use_version_autodetect: bool | None = None,
features: IFeatures | None = None,
Expand Down

0 comments on commit cbe7737

Please sign in to comment.