mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-20 02:34:33 +10:00
Resources: Add return typing suggestion
This commit is contained in:
@@ -5,7 +5,7 @@ import plistlib
|
||||
|
||||
class ParseCommitInfo:
|
||||
|
||||
def __init__(self, binary_path: str):
|
||||
def __init__(self, binary_path: str) -> None:
|
||||
"""
|
||||
Parameters:
|
||||
binary_path (str): Path to binary
|
||||
@@ -15,7 +15,7 @@ class ParseCommitInfo:
|
||||
self.plist_path = self._convert_binary_path_to_plist_path()
|
||||
|
||||
|
||||
def _convert_binary_path_to_plist_path(self):
|
||||
def _convert_binary_path_to_plist_path(self) -> str or None:
|
||||
"""
|
||||
Resolve Info.plist path from binary path
|
||||
"""
|
||||
@@ -27,7 +27,7 @@ class ParseCommitInfo:
|
||||
return None
|
||||
|
||||
|
||||
def generate_commit_info(self):
|
||||
def generate_commit_info(self) -> tuple:
|
||||
"""
|
||||
Generate commit info from Info.plist
|
||||
|
||||
|
||||
Reference in New Issue
Block a user