You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/static-typing.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,7 @@ class User:
11
11
self.name = name
12
12
13
13
14
-
defgreeting(user: User) -> Element:
14
+
defgreeting(user: User) -> Renderable:
15
15
return h1[f"Hi {user.first_name.capitalize()}!]
16
16
# ^^^^^^^^^^
17
17
# mypy: error: "User" has no attribute "first_name" [attr-defined]
@@ -80,8 +80,8 @@ or callables.
80
80
Use `Node` when you want to create a wrapper function to be flexible with what you accept. This function will accept both a stror some other element to be passed as`contents`:
0 commit comments