데코레이터 대신 직접 함수객체 생성하려고 Callable 타입인 fn을 lambda로 넘기려 한다. arguments 처리를 위해 signature 정보를 넣어줬더니 mypy 가 배를 짼다.

이럴땐

  1. cast 한다
  2. mypy ignore 한다

어떻게 하는게 바람직한가요?

2

If you have a fediverse account, you can quote this note from your own instance. Search https://hackers.pub/ap/notes/01966ef8-1cff-79a0-9cad-9974c8d37687 on your instance and quote it. (Note that quoting is not supported in Mastodon.)