11from datetime import date , datetime
22from decimal import Decimal
3+ from functools import cached_property
34from typing import TYPE_CHECKING , Iterable , Protocol , runtime_checkable
45from zoneinfo import ZoneInfo
56
1516 KisMarketType ,
1617 get_market_code ,
1718 get_market_code_timezone ,
18- get_market_timezone ,
1919)
2020from pykis .client .account import KisAccountNumber
2121from pykis .client .page import KisPage
2222from pykis .responses .dynamic import KisDynamic , KisList , KisTransform
2323from pykis .responses .response import KisPaginationAPIResponse
24- from pykis .responses .types import KisAny , KisDecimal , KisInt , KisString
25- from pykis .utils .cache import cached
24+ from pykis .responses .types import KisAny , KisDecimal , KisString
2625from pykis .utils .repr import kis_repr
2726from pykis .utils .timezone import TIMEZONE
2827
@@ -438,9 +437,9 @@ class KisForeignOrderProfits(KisPaginationAPIResponse, KisOrderProfitsBase):
438437 _end : date
439438 _country : COUNTRY_TYPE | None = None
440439
441- @ property
442- @cached
443- def fees (self ) -> Decimal :
440+ # Pylance bug: cached_property[Decimal] type inference error.
441+ @cached_property
442+ def fees (self ) -> Decimal : # type: ignore
444443 """
445444 수수료 조회 (모의투자 미지원)
446445
@@ -454,6 +453,8 @@ def fees(self) -> Decimal:
454453 country = self ._country ,
455454 )
456455
456+ fees : Decimal
457+
457458 def __init__ (
458459 self ,
459460 account_number : KisAccountNumber ,
0 commit comments