build: Add missing annotation to Target method

pull/11463/head
Dylan Baker 3 years ago committed by Eli Schwartz
parent 4cf5ad2463
commit 06453ed7a4
  1. 2
      mesonbuild/build.py

@ -595,7 +595,7 @@ class Target(HoldableObject, metaclass=abc.ABCMeta):
return self.typename
@staticmethod
def _get_id_hash(target_id):
def _get_id_hash(target_id: str) -> str:
# We don't really need cryptographic security here.
# Small-digest hash function with unlikely collision is good enough.
h = hashlib.sha256()

Loading…
Cancel
Save