From cab35e3dfd2fa2d41a045b79e9c247ddcd84cf52 Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 25 Feb 2022 08:02:46 +0100 Subject: move control flow puzzles before typing puzzles --- puzzles/32_protocol_missing_member.py | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 puzzles/32_protocol_missing_member.py (limited to 'puzzles/32_protocol_missing_member.py') diff --git a/puzzles/32_protocol_missing_member.py b/puzzles/32_protocol_missing_member.py new file mode 100644 index 0000000..79bd70e --- /dev/null +++ b/puzzles/32_protocol_missing_member.py @@ -0,0 +1,7 @@ +from typing import Protocol + +class P(Protocol): + x: int + +class B(P): # error + pass -- cgit v1.2.3