Add `__enter__` and `__exit__` to `lt.Thing`
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 78/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
調査の方向性
lt.Thingの定義を見つけ、既存のライフサイクルメソッドと近くにあるテストを読んでください。説明に従って空の__enter__メソッドと__exit__メソッドを追加し、関連するテストを実行して、Thingをコンテキストマネージャーとして使用できることを確認してください。
索引モデルが issue の本文から書いたものです。
説明
Is your feature request related to a problem? Please describe.
In this MR discussion it was pointed out that having __enter__ and __exit__ defined on lt.Thing would make some downstream code cleaner.
I think the only reason I left this out was in anticipation that (at some point in the future) it might be possible to write an async Thing. That looks increasingly far away, and in any case it would be fine to redefine the synchronous methods to raise an exception if we want to be async.
Describe the solution you'd like
Add (empty) __enter__ and __exit__ methods to lt.Thing.
Additional context
MR Thread
- 主要言語
- Python
- スター
- 10
- フォーク
- 4
- 平均マージ
- 4日 15時間
- マージ済み PR(30日)
- 11
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
labthings/labthings-fastapi のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
labthings/labthings-fastapi#438 ·
メンテナーはふだん 3 日以内に返信
-
Consider atomic JSON writes再び着手できるかも @ashiishe2-oss が 26 日前に担当しましたが、オープン中のプルリクエストはありません。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
labthings/labthings-fastapi#412 · コメント 3 件 ·
メンテナーはふだん 3 日以内に返信
-
drop-python-version
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
labthings/labthings-fastapi#354 · コメント 2 件 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
labthings/labthings-fastapi#312 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
good first issue help wanted low priority
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
labthings/labthings-fastapi#437 ·
メンテナーはふだん 3 日以内に返信
labthings/labthings-fastapi の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
bad-antics/lateralus-lang#1623 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
fossguild/thelifesnake#82 ·
メンテナーはふだん 1 日以内に返信
-
Unfitted DialectClassifier crashes with a confusing ValueError: raise a clear "not fitted" errorオープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
omarelshamy25x/shamy-arabic-nlp#111 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
pietbarber/Manage2Soar#1189 ·
メンテナーはふだん 1 日以内に返信
-
BUG: write_netcdf fails on Tutorial 3 BEM output with pandas CategoricalDtype DOF coordinates対応中かも @dtgaebe が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
sandialabs/WecOptTool#467 ·