<p><a href="https://gerrit.osmocom.org/c/pysim/+/23577">View Change</a></p><p>5 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/23577/2/pySim/commands.py">File pySim/commands.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/23577/2/pySim/commands.py@141">Patch Set #2, Line 141:</a> <code style="font-family:monospace,monospace">length:int=None</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Python is weird:</p><ul><li>for arguments without type hints their PEP recommends no spaces around '=';</li><li>for arguments with type hints they recommend: length: int = None.</li></ul><p style="white-space: pre-wrap; word-wrap: break-word;">Just a cosmetic note.</p></li></ul></li><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/pysim/+/23577/2/pySim/filesystem.py">File pySim/filesystem.py:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/23577/2/pySim/filesystem.py@45">Patch Set #2, Line 45:</a> <code style="font-family:monospace,monospace">parent:'CardDF'=None</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">The linters won't be happy about this, you need</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  from typing import Optional<br>  parent: Optional('CardDF') = None</pre><p style="white-space: pre-wrap; word-wrap: break-word;">if None is permitted.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/23577/2/pySim/filesystem.py@106">Patch Set #2, Line 106:</a> <code style="font-family:monospace,monospace">alias:str=None</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same here, it's Optional.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/23577/2/pySim/filesystem.py@235">Patch Set #2, Line 235:</a> <code style="font-family:monospace,monospace">CardFile</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Optional, there can be None</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/pysim/+/23577/2/pySim/filesystem.py@410">Patch Set #2, Line 410:</a> <code style="font-family:monospace,monospace">fid:str, sfid:str=None, name:str=None, desc:str=None, parent:CardDF=None</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Unrelated: if they all are optional, then using **kw may be a good idea.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/23577">change 23577</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/23577"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I6ac88e0662cf3c56ae32d86d50b18a8b4150571a </div>
<div style="display:none"> Gerrit-Change-Number: 23577 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: dexter <pmaier@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: tnt <tnt@246tNt.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 02 Apr 2021 13:36:14 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>