We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84551ad commit dba821eCopy full SHA for dba821e
3 files changed
challenges/intermediate-empty-tuple/hints.md
@@ -0,0 +1 @@
1
+Check out [annotating-tuples](https://docs.python.org/zh-cn/3/library/typing.html#annotating-tuples)
challenges/intermediate-empty-tuple/question.py
@@ -0,0 +1,14 @@
+"""
2
+TODO:
3
+
4
+foo should accept a empty tuple argument.
5
6
7
8
+def foo(x):
9
+ pass
10
11
12
+## End of your code ##
13
+foo(())
14
+foo((1)) # expect-type-error
challenges/intermediate-empty-tuple/solution.py
+def foo(x: tuple[()]):
0 commit comments