Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Python] 타입 힌트 내용 보완 - None 타입 #62

Merged
merged 2 commits into from
Aug 31, 2023

Conversation

jseop-lim
Copy link
Contributor

#60리뷰를 반영합니다.

함수의 반환 값이 None인 경우는 세 가지 있습니다.

# Case 1
def foo():
    return None

# Case 2
def boo():
    return

# Case 3
def voo():
    pass

첫 번째 경우는 로직 측면에서 지양해야 합니다.
두 번째 경우와 세 번째 경우에 대해 반환형 타입 힌트로 None을 적습니다.

@jseop-lim jseop-lim requested review from Kirade and cbscsm August 24, 2023 07:24
Python/README.md Outdated Show resolved Hide resolved
Co-authored-by: Boseong Choi <31615733+cbscsm@users.noreply.github.com>
@jseop-lim jseop-lim requested a review from cbscsm August 31, 2023 01:10
@jseop-lim jseop-lim merged commit 54b3616 into master Aug 31, 2023
@jseop-lim jseop-lim deleted the 230824_python_type_hint branch August 31, 2023 14:39
@jseop-lim jseop-lim self-assigned this Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants