Open
Conversation
[refactoring]
pyright version 1.1.266, mypy 0.971 에서 Type Check시 에러가 발생하네요 pyright error - error: "item" is not a known member of "None" (reportOptionalMemberAccess) - error: "pointer" is not a known member of "None" (reportOptionalMemberAccess) - error: Function with declared type of "T@Stack" must return value Type "None" cannot be assigned to type "T@Stack" (reportGeneralTypeIssues) mypy error - error: Item "None" of "Optional[Node[Any]]" has no attribute "item" 해당 에러들 안나는 방향으로 수정 했습니다. 수정 해보니 pyright랑 mypy 랑 잡는 부분이 다르긴 하네요.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
에서 cur_node를 cur_node. pointer 로 찍을때 point 가 None이 아닌지 명시되지 않아서 에러가 나는 걸로 보이구요.