Skip to content

Commit

Permalink
Use type annotations on class attributes
Browse files Browse the repository at this point in the history
This is a workaround for PyCQA/flake8#1755,
but also a shift towards the bright Python 3 future.
  • Loading branch information
mgedmin committed Nov 24, 2022
1 parent 45c925f commit fd932df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from contextlib import closing
from functools import partial
from io import BytesIO, StringIO
from typing import Optional
from typing import Dict, Optional
from xml.etree import ElementTree as ET


Expand Down Expand Up @@ -932,8 +932,8 @@ def test_zest_releaser_check_failure_user_plods_on(self, check_manifest,
class VCSHelper:

# override in subclasses
command = None # type: Optional[str]
extra_env = {}
command: Optional[str] = None
extra_env: Dict[str, str] = {}

@property
def version(self):
Expand Down

0 comments on commit fd932df

Please sign in to comment.