Skip to content
  • Damian Johnson's avatar
    Static check fixes · c6952fee
    Damian Johnson authored
    Upgrading to pycodestyle 2.6.0 produced a few new warnings...
    
      STATIC CHECKS
      * /home/atagar/Desktop/stem/stem/descriptor/certificate.py
        line 257  - undefined name 'cryptography'            | def __init__(self, cert_type: Optional['stem.client.datatype.CertType'] = None, expiration: Optional[datetime.datetime] = None, key_type: Optional[int] = None, key: Optional[bytes] = None, extensions: Optional[Sequence['stem.descriptor.certificate.Ed25519Extension']] = None, signature: Optional[bytes] = None, signing_key: Optional['cryptography.hazmat.primitives.asymmetric.ed25519.Ed25519PrivateKey'] = None) -> None:  # type: ignore
    
      * /home/atagar/Desktop/stem/stem/descriptor/hidden_service.py
        line 288  - E741 ambiguous variable name 'l'         | link_specifiers = link_count + b''.join([l.pack() for l in self.link_specifiers])
    
      * /home/atagar/Desktop/stem/stem/interpreter/commands.py
        line 272  - E741 ambiguous variable name 'l'         | lines += [format(l, *STANDARD_OUTPUT) for l in str(desc).splitlines()]
    
      * /home/atagar/Desktop/stem/stem/util/__init__.py
        line 84   - undefined name 'cryptography'            | def _pubkey_bytes(key: Union['cryptography.hazmat.primitives.asymmetric.ed25519.Ed25519PrivateKey', 'cryptography.hazmat.primitives.asymmetric.ed25519.Ed25519PublicKey', 'cryptography.hazmat.primitives.asymmetric.x25519.X25519PrivateKey', 'cryptography.hazmat.primitives.asymmetric.x25519.X25519PublicKey']) -> bytes:  # type: ignore
    
      * /home/atagar/Desktop/stem/test/unit/response/events.py
        line 540  - 'stem.control.Controller' imported but unused | from stem.control import Controller, EventType
    
      * stem/client/__init__.py
        line 322  - unused 'type: ignore' comment
    
      * stem/control.py
        line 2493 - Unpacking a string is disallowed  [misc]
        line 2511 - Unpacking a string is disallowed  [misc]
        line 2516 - Unpacking a string is disallowed  [misc]
    
      * stem/directory.py
        line 270  - Unpacking a string is disallowed  [misc]
        line 271  - Unpacking a string is disallowed  [misc]
        line 436  - Unpacking a string is disallowed  [misc]
    c6952fee