MiPAC icon indicating copy to clipboard operation
MiPAC copied to clipboard

Misskey Python API Core

Results 24 MiPAC issues
Sort by recently updated
recently updated
newest added

## Summary `note.action.create` みたいに `text` にする

kind/Feature✨

**Describe the bug** #144 と同様に、`note.get_reactions` を繰り返し実行した際に、`target_cache.put` で Handle されない `KeyError` が発生する場合がありました。 **Code snippets** Traceback は以下の通りです。 ``` Traceback (most recent call last): File "/home/xxx/.local/lib/python3.13/site-packages/mipac/utils/cache.py", line 102, in wrapper hit_item = target_cache.get(key)...

kind/Bug🐛

## Summary 現在 `hoge: NotRequired[str | None]` の様な型の属性があり、キーが存在しない場合 `.get("hoge")` と書くことでキーが存在しない場合でも `None` を返している。しかしながらこれではキーが存在しないのか、キーは存在するものの値が存在しないのか判断ができない。 それを今度は `str | None | Missing` といった形にすることで明確に判断できるようにする。 問題点としては以下が挙げられる * bool(属性)した場合Falseが入ってしまう * わざわざboolで囲うという条件はあるものの、意図せず条件式が動いてしまいデバッグ時に原因の特定が困難になることがあるかもしれない 解決策としてはMissingの `__bool__` を持たないようなクラスを用意する

kind/Feature✨
Extra Large
mi/ver/latest
topic/model💾

時間はかかるけどとりあえず10月のやつまではある程度追従したい