Skip to content

Commit 3628e2e

Browse files
lolpackfacebook-github-bot
authored andcommitted
Reviewed By: ndmitchell Differential Revision: D74299701 fbshipit-source-id: ef0e903cef4f18f1395824f45671783016e9cc0e
1 parent 2e7bef2 commit 3628e2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

website/docs/python-typing-for-beginners.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Default values keep their annotation:
147147

148148
<pre>
149149
<SandboxBrowserOnly
150-
sampleFilename="defaul_value_types.py"
150+
sampleFilename="default_value_types.py"
151151
isCodeSnippet={true}
152152
codeSample={`# Function with default value
153153
@@ -178,7 +178,7 @@ def debug(*msgs: str, log: Logger | None = print) -> None:
178178
/>
179179
</pre>
180180

181-
## 5. Get Type Hint Signals Directly in Your Editor
181+
## 6. Get Type Hint Signals Directly in Your Editor
182182

183183
You can download the [Pyrefly extension for VSCode](https://marketplace.visualstudio.com/items?itemName=meta.pyrefly) to get type hint signals directly in your IDE.
184184

website/docs/typing-for-python-developers.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import SandboxBrowserOnly from '@site/src/sandbox/SandboxBrowserOnly'
1414

1515
If you are new to Python, check out our [Python Typing for Beginners guide](../python-typing-for-beginners/).
1616

17-
Python's type system allow you to annotate variables so you, your teammates and your type checker can find bugs before you run your code. Think of it as documentation that's automatically validated and will help your IDE help you.
17+
Python's type system allows you to annotate variables so you, your teammates and your type checker can find bugs before you run your code. Think of it as documentation that's automatically validated and will help your IDE help you.
1818

1919
_TL;DR_
2020
* Catch bugs **before** running the code.
@@ -111,7 +111,7 @@ Defining the parameter and return types for a function doesn't just help prevent
111111
from typing import reveal_type
112112
113113
def greet(name: str) -> str:
114-
return f"Hello , {name}!"
114+
return f"Hello, {name}!"
115115
116116
greet("Pyrefly")
117117

0 commit comments

Comments
 (0)