chore: IReactionRequired, IReactionタイプを削除

pull/11/head
yupix 2 years ago
parent 2a198ce933
commit ecaf96acb6
No known key found for this signature in database
GPG Key ID: 2FF705F5C56D9C06

@ -1,4 +1,5 @@
# Change Log
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
@ -10,13 +11,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- added `Modeler` class
- added `RawChannel` class
- added `RawPinnedNote` class
- added `RawPinnedNote` class
- added `IReactionRequired` class
### Changed
- `Dict[Any, Any]` のような構文を typingモジュールを使わない `dict[any, any]` に変更
- `List[Any, Any]` のような構文を typingモジュールを使わない `list[any, any]` に変更
- `Dict[Any, Any]` のような構文を typing モジュールを使わない `dict[any, any]` に変更
- `List[Any, Any]` のような構文を typing モジュールを使わない `list[any, any]` に変更
- `Channel` クラスを `RawChannel` を用いて作るように
- `PinnedNote` クラスを `RawPinnedNote` を用いて作るように
- change class name `PinnedNotePayload` -> `IPinnedNote`
@ -25,32 +26,37 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
- change class name `RenotePayload` -> `IRenote`
- change class name `ReactionPayload` -> `IReaction`
### Removed
- `RawRenote`, `Renote` クラスを削除しました。今後は `Note` クラスをご利用ください
## [0.1.0] - 2022-05-28
### Added
- `__all__` の定義
- utils.pyに `AuthClient` クラスを追加しました
- utils.py `AuthClient` クラスを追加しました
- `Config` クラスを追加しました
- `Client` クラスの引数に `config` を追加しました
- `FileActions` クラスを追加しました
- `FolderActions` クラスを追加しました
- README.mdに使い方を追加
- README.md に使い方を追加
### Changed
- `Note` クラスの`created_at` 属性のtype hintを `Optional[str]` => `Optional[datetime]` に変更
- `Note` クラスの `cw` 属性の取得方法がgetではなかったので修正
- `Note` クラスの`created_at` 属性の type hint `Optional[str]` => `Optional[datetime]` に変更
- `Note` クラスの `cw` 属性の取得方法が get ではなかったので修正
- **BREAKING CHANGE** `FileManager`, `FolderManager`, `DriveManager`の役割が変わりました
- 例だと `FolderManager.get_files()` だったコードが `FolderManager.action.get_files()` と行ったふうにActionsクラスを経由するようになりました
- 例だと `FolderManager.get_files()` だったコードが `FolderManager.action.get_files()` と行ったふうに Actions クラスを経由するようになりました
- 開発者向け情報 `Folder` クラスの引数に `client` を追加しました
### Fixed
- configが無く動かなかった場所の修正
- config が無く動かなかった場所の修正
- 誤った型の修正
### Removed
- 重複した属性を削除
- 不要なimportの削除
- 終わっているTODOを削除しました
- 不要な import の削除
- 終わっている TODO を削除しました

@ -18,10 +18,9 @@ from mipac.types.note import (
GeoPayload,
INote,
INoteRequired,
IReaction,
IReactionRequired,
IRenote,
IPoll,
INoteReaction
)
from mipac.types.page import (
AttachedFilePayload,
@ -54,11 +53,10 @@ __all__ = (
'INoteRequired',
'INote',
'GeoPayload',
'IReaction',
'IPoll',
'IRenote',
'IReactionRequired',
'FeaturesPayload',
'INoteReaction',
'MetaPayload',
'InstancePayload',
'OptionalInstance',

@ -8,11 +8,10 @@ __all__ = (
'INoteRequired',
'INote',
'GeoPayload',
'IReaction',
'IPoll',
'IPollCoice',
'INoteReaction',
'IRenote',
'IReactionRequired',
)
@ -103,11 +102,6 @@ class INote(INoteRequired, total=False):
is_hidden: bool
poll: IPoll
class IReactionRequired(TypedDict):
reaction: str
class INoteReaction(TypedDict):
id: str
created_at: str
@ -115,10 +109,3 @@ class INoteReaction(TypedDict):
type: str
class IReaction(IReactionRequired, total=False):
created_at: str
type: str
is_read: bool
user: UserPayload
note: INote
id: str

Loading…
Cancel
Save