티스토리 뷰
728x90
from typing import Callable
def my_function(func: Callable):
https://stackoverflow.com/questions/37835179/how-can-i-specify-the-function-type-in-my-type-hints
How can I specify the function type in my type hints?
How can I specify the type hint of a variable as a function type? There is no typing.Function, and I could not find anything in the relevant PEP, PEP 483.
stackoverflow.com
https://docs.python.org/ko/3/library/typing.html
typing — Support for type hints
Source code: Lib/typing.py This module provides runtime support for type hints. The most fundamental support consists of the types Any, Union, Callable, TypeVar, and Generic. For a full specificati...
docs.python.org
728x90
'공부' 카테고리의 다른 글
[python] pip3 install github (0) | 2023.04.24 |
---|---|
[python] obj = os.environ; value=obj["value"] (0) | 2023.04.21 |
[python] datetime.replace(second=0, microsecond=0) (0) | 2023.04.21 |
[croniter] match (0) | 2023.04.21 |
[python] datetime to int `int(datetime.datetime.utcnow().timestamp())` (0) | 2023.04.21 |
댓글
250x250
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- 테슬라 레퍼럴 적용 확인
- 테슬라 리퍼럴 코드
- 테슬라 레퍼럴
- 테슬라 레퍼럴 코드 확인
- COUNT
- 메디파크 내과 전문의 의학박사 김영수
- 모델y
- follower
- 팔로워 수 세기
- 테슬라 리퍼럴 코드 생성
- 유투브
- 테슬라 리퍼럴 코드 혜택
- 테슬라
- 연애학개론
- 클루지
- 책그림
- 김달
- 인스타그램
- 어떻게 능력을 보여줄 것인가?
- Bot
- 모델 Y 레퍼럴
- 테슬라 크레딧 사용
- Kluge
- 레퍼럴
- 테슬라 추천
- 할인
- 개리마커스
- wlw
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
글 보관함