Skip to content

Commit

Permalink
Add types to Hexdigest
Browse files Browse the repository at this point in the history
  • Loading branch information
bhrutledge committed Apr 27, 2020
1 parent 0c1882e commit f0526c2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions twine/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
import collections
import hashlib
import io
import os
import subprocess
from typing import Dict
from typing import NamedTuple
from typing import Optional
from typing import Sequence
from typing import Tuple
Expand Down Expand Up @@ -200,7 +200,10 @@ def run_gpg(cls, gpg_args: Tuple[str, ...]) -> None:
)


Hexdigest = collections.namedtuple("Hexdigest", ["md5", "sha2", "blake2"])
class Hexdigest(NamedTuple):
md5: Optional[str]
sha2: Optional[str]
blake2: Optional[str]


class HashManager:
Expand Down

0 comments on commit f0526c2

Please sign in to comment.