AllenNeuralDynamics / AllenNeuralDynamics/one-liner
Make `Client.version` and `Client.server_version` properties
- 主要言語
- Python
- スター
- 3
- フォーク
- 0
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
Current code in client.py
```python
def version(self):
"""Return client version."""
return local_version
def server_version(self):
"""Return the server version."""
return self.rpc_client.call("__router_server", "version")[1]
```
Should be
```python
@property
def version(self):
"""Return client version."""
return local_version
@property
def server_version(self):
"""Return the server version."""
return self.rpc_client.call("__router_server", "version")[1]
```
Or potentially `@cached_property`
This allows for the more idiomatic user experience of `client.version` rather than `client.version()`
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
評価
この issue はまだ評価されていません。