profile: decode_select_response use object instead 'Any'

the return type of decode_select_response is 'Any', lets be more
specific and use 'object'

Change-Id: Ic5c7ace234bc94ab1381d87e091369ade8011cab
This commit is contained in:
Philipp Maier
2021-11-16 15:46:42 +01:00
parent 5998a3a8b3
commit 9e42e7ffce
4 changed files with 5 additions and 6 deletions

View File

@@ -34,7 +34,7 @@ import cmd2
from cmd2 import CommandSet, with_default_category, with_argparser
import argparse
from typing import cast, Optional, Iterable, List, Any, Dict, Tuple
from typing import cast, Optional, Iterable, List, Dict, Tuple
from smartcard.util import toBytes
@@ -354,7 +354,7 @@ class CardMF(CardDF):
sels.update({x.name: x for x in self.applications.values() if x.name})
return sels
def decode_select_response(self, data_hex:str) -> Any:
def decode_select_response(self, data_hex:str) -> object:
"""Decode the response to a SELECT command.
This is the fall-back method which automatically defers to the standard decoding