Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add typing to dirsnapshot #1012

Merged
merged 2 commits into from Oct 7, 2023
Merged

Conversation

msabramo
Copy link
Contributor

@msabramo msabramo commented Oct 6, 2023

Before:

(.venv)
abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master●)
$ mypy --disallow-untyped-defs src/watchdog/utils/dirsnapshot.py
src/watchdog/utils/dirsnapshot.py:82: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:88: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:93: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:141: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:144: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:162: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:167: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:172: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:177: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:187: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:194: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:204: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:211: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:241: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:258: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:290: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:296: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:302: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:307: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:310: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:313: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:316: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:331: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:340: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:343: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:354: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:364: error: Function is missing a return type annotation  [no-untyped-def]
Found 27 errors in 1 file (checked 1 source file)

After:

(.venv)
abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master●●)
$ mypy --disallow-untyped-defs src/watchdog/utils/dirsnapshot.py
Success: no issues found in 1 source file

Before:

```
(.venv)
abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master●)
$ mypy --disallow-untyped-defs src/watchdog/utils/dirsnapshot.py
src/watchdog/utils/dirsnapshot.py:82: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:88: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:93: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:141: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:144: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:162: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:167: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:172: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:177: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:187: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:194: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:204: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:211: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:241: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:258: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:290: error: Function is missing a return type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:296: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:302: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:307: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:310: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:313: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:316: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:331: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:340: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:343: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:354: error: Function is missing a type annotation  [no-untyped-def]
src/watchdog/utils/dirsnapshot.py:364: error: Function is missing a return type annotation  [no-untyped-def]
Found 27 errors in 1 file (checked 1 source file)
```

After:

```
(.venv)
abramowi at Marcs-MacBook-Pro-3 in ~/Code/OpenSource/watchdog (master●●)
$ mypy --disallow-untyped-defs src/watchdog/utils/dirsnapshot.py
Success: no issues found in 1 source file
```
@BoboTiG BoboTiG merged commit 5f9d93c into gorakhargosh:master Oct 7, 2023
22 of 45 checks passed
@BoboTiG
Copy link
Collaborator

BoboTiG commented Oct 7, 2023

Marvelous, thank you @msabramo !

@msabramo msabramo deleted the typing_dirsnapshot branch October 9, 2023 19:54
msabramo added a commit to msabramo/watchdog that referenced this pull request Oct 9, 2023
@msabramo
Copy link
Contributor Author

msabramo commented Oct 9, 2023

It seems that this might've caused some mypy failures. My proposed fix for these is #1014.

BoboTiG pushed a commit that referenced this pull request Oct 9, 2023
github-actions bot pushed a commit to wxx9248/CIS-Game-Project-2023W that referenced this pull request Feb 7, 2024
Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to
4.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/releases">watchdog's
releases</a>.</em></p>
<blockquote>
<h2>4.0.0</h2>
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's
changelog</a>.</em></p>
<blockquote>
<p>4.0.0</p>
<pre><code>
2024-02-06 • `full history
&lt;https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0&gt;`__
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code>
(<code>[#1012](gorakhargosh/watchdog#1012)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1012&amp;gt;</code>__)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<code>[#1011](gorakhargosh/watchdog#1011)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1011&amp;gt;</code>__)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a>
</code></pre></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a>
Version 4.0.0</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a>
chore: Update supported Python versions (drop 3.7, add 3.12) (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a>
fix: mypy &quot;type: ignore&quot; comment errors (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a>
style: run black &amp; isort on inotify (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a>
feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a>
fix: mypy errors introduced by <a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a>
feat: Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a>
doc: log the watched folder in the README (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a>
Added event filter for the emitter (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a>
[windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
williamjallen pushed a commit to Submitty/Submitty that referenced this pull request Mar 2, 2024
Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to
4.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/releases">watchdog's
releases</a>.</em></p>
<blockquote>
<h2>4.0.0</h2>
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's
changelog</a>.</em></p>
<blockquote>
<p>4.0.0</p>
<pre><code>
2024-02-06 • `full history
&lt;https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0&gt;`__
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code>
(<code>[#1012](gorakhargosh/watchdog#1012)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1012&amp;gt;</code>__)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<code>[#1011](gorakhargosh/watchdog#1011)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1011&amp;gt;</code>__)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a>
</code></pre></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a>
Version 4.0.0</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a>
chore: Update supported Python versions (drop 3.7, add 3.12) (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a>
fix: mypy &quot;type: ignore&quot; comment errors (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a>
style: run black &amp; isort on inotify (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a>
feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a>
fix: mypy errors introduced by <a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a>
feat: Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a>
doc: log the watched folder in the README (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a>
Added event filter for the emitter (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a>
[windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
miniscruff pushed a commit to miniscruff/scopie that referenced this pull request Mar 17, 2024
Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to
4.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/releases">watchdog's
releases</a>.</em></p>
<blockquote>
<h2>4.0.0</h2>
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's
changelog</a>.</em></p>
<blockquote>
<p>4.0.0</p>
<pre><code>
2024-02-06 • `full history
&lt;https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0&gt;`__
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code>
(<code>[#1012](gorakhargosh/watchdog#1012)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1012&amp;gt;</code>__)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<code>[#1011](gorakhargosh/watchdog#1011)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1011&amp;gt;</code>__)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a>
</code></pre></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a>
Version 4.0.0</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a>
chore: Update supported Python versions (drop 3.7, add 3.12) (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a>
fix: mypy &quot;type: ignore&quot; comment errors (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a>
style: run black &amp; isort on inotify (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a>
feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a>
fix: mypy errors introduced by <a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a>
feat: Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a>
doc: log the watched folder in the README (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a>
Added event filter for the emitter (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a>
[windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Xiayucheng1212 pushed a commit to Xiayucheng1212/Submitty that referenced this pull request Apr 3, 2024
…ty#10221)

Bumps [watchdog](https://github.com/gorakhargosh/watchdog) from 3.0.0 to
4.0.0.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/releases">watchdog's
releases</a>.</em></p>
<blockquote>
<h2>4.0.0</h2>
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a></li>
</ul>
</blockquote>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst">watchdog's
changelog</a>.</em></p>
<blockquote>
<p>4.0.0</p>
<pre><code>
2024-02-06 • `full history
&lt;https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0&gt;`__
<ul>
<li>Drop support for Python 3.7.</li>
<li>Add support for Python 3.12.</li>
<li>[snapshot] Add typing to <code>dirsnapshot</code>
(<code>[Submitty#1012](gorakhargosh/watchdog#1012)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1012&amp;gt;</code>__)</li>
<li>[snapshot] Added <code>DirectorySnapshotDiff.ContextManager</code>
(<code>[Submitty#1011](gorakhargosh/watchdog#1011)
&amp;lt;https://github.com/gorakhargosh/watchdog/pull/1011&amp;gt;</code>__)</li>
<li>[events] <code>FileSystemEvent</code>, and subclasses, are now
<code>dataclass</code>es, and their <code>repr()</code> has changed</li>
<li>[windows] <code>WinAPINativeEvent</code> is now a
<code>dataclass</code>, and its <code>repr()</code> has changed</li>
<li>[events] Log <code>FileOpenedEvent</code>, and
<code>FileClosedEvent</code>, events in
<code>LoggingEventHandler</code></li>
<li>[tests] Improve <code>FileSystemEvent</code> coverage</li>
<li>[watchmedo] Log all events in <code>LoggerTrick</code></li>
<li>[windows] The
<code>observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code>
hack was removed. The constant will be kept to prevent breaking other
softwares.</li>
<li>Thanks to our beloved contributors: <a
href="https://github.com/BoboTiG"><code>@​BoboTiG</code></a>, <a
href="https://github.com/msabramo"><code>@​msabramo</code></a>
</code></pre></li>
</ul>
</blockquote>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/7d651ac556fbce7003e97912a2125a421f38e2af"><code>7d651ac</code></a>
Version 4.0.0</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cdf07efa04d2651a632e963fb464c2265c91b9c"><code>6cdf07e</code></a>
chore: Update supported Python versions (drop 3.7, add 3.12) (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1017">#1017</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/6cfe9cc3e84b29264ae8c5fa1f1b3ce9c09acfbf"><code>6cfe9cc</code></a>
fix: mypy &quot;type: ignore&quot; comment errors (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1016">#1016</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/e4e2f8e0ef9e4bd71359b781058d01322b7decf9"><code>e4e2f8e</code></a>
style: run black &amp; isort on inotify (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1015">#1015</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/52d869239b97a114c65b8d5c54d25b01607c7a7f"><code>52d8692</code></a>
feat: Add <code>DirectorySnapshotDiff.ContextManager</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1011">#1011</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/23388375b7495e70a5163986a401e526c5543b7f"><code>2338837</code></a>
fix: mypy errors introduced by <a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1014">#1014</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/5f9d93cbdd7b2bcd35cc24fa4c3a573f36fb0335"><code>5f9d93c</code></a>
feat: Add typing to <code>dirsnapshot</code> (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/1012">#1012</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/75a3289dd3215124149d82eb27b8a75899b06a8f"><code>75a3289</code></a>
doc: log the watched folder in the README (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/995">#995</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/48c49a1fe0538be455d52aa9a0eb57519a6ce2eb"><code>48c49a1</code></a>
Added event filter for the emitter (<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/989">#989</a>)</li>
<li><a
href="https://github.com/gorakhargosh/watchdog/commit/363fe6208d9662309a50d4f7012449afa1e9cdc2"><code>363fe62</code></a>
[windows] Remove the <code>WATCHDOG_TRAVERSE_MOVED_DIR_DELAY</code> hack
(<a
href="https://redirect.github.com/gorakhargosh/watchdog/issues/986">#986</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/gorakhargosh/watchdog/compare/v3.0.0...v4.0.0">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=watchdog&package-manager=pip&previous-version=3.0.0&new-version=4.0.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants