From 28813752c7eb2acf0fcedb56db3f51441625d3a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20=C3=85gren?= Date: Mon, 3 Jun 2024 10:15:31 +0200 Subject: [PATCH 1/2] Fix typo in `watch` doctstring --- watchfiles/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watchfiles/main.py b/watchfiles/main.py index 48625b5..2b4ebd1 100644 --- a/watchfiles/main.py +++ b/watchfiles/main.py @@ -72,8 +72,8 @@ def watch( #### Force polling - Notify will fall back to file polling if it can't use file system notifications, but we also force notify - to us polling if the `force_polling` argument is `True`; if `force_polling` is unset (or `None`), we enable + Notify will fall back to file polling if it can't use file system notifications, but we also force Notify + to use polling if the `force_polling` argument is `True`; if `force_polling` is unset (or `None`), we enable force polling thus: * if the `WATCHFILES_FORCE_POLLING` environment variable exists and is not empty: From 5545e22d96b8e21766c578f66bb7da35e37c9432 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20=C3=85gren?= Date: Mon, 3 Jun 2024 10:31:27 +0200 Subject: [PATCH 2/2] Add indentation to nested list --- watchfiles/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/watchfiles/main.py b/watchfiles/main.py index 2b4ebd1..2fb9ef8 100644 --- a/watchfiles/main.py +++ b/watchfiles/main.py @@ -77,8 +77,8 @@ def watch( force polling thus: * if the `WATCHFILES_FORCE_POLLING` environment variable exists and is not empty: - * if the value is `false`, `disable` or `disabled`, force polling is disabled - * otherwise, force polling is enabled + * if the value is `false`, `disable` or `disabled`, force polling is disabled + * otherwise, force polling is enabled * otherwise, we enable force polling only if we detect we're running on WSL (Windows Subsystem for Linux) Args: