Skip to content

Commit

Permalink
Pyre Configurationless migration for] [batch:25/112] [shard:6/N]
Browse files Browse the repository at this point in the history
Reviewed By: grievejia

Differential Revision: D54439981

fbshipit-source-id: a4349cc69f91e167e5f33f2398a592b3955ebe4e
  • Loading branch information
connernilsen authored and facebook-github-bot committed Mar 5, 2024
1 parent f9e2634 commit dec32b8
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions later/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License.

# pyre-strict

"""A toolbox for asyncio services"""

from async_timeout import timeout
Expand Down
2 changes: 2 additions & 0 deletions later/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

# pyre-strict
from asyncio import Event


Expand Down
2 changes: 2 additions & 0 deletions later/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

# pyre-strict
from __future__ import annotations

import asyncio
Expand Down
2 changes: 2 additions & 0 deletions later/tests/test_event.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License

# pyre-strict
import asyncio
from contextlib import suppress

Expand Down
2 changes: 2 additions & 0 deletions later/tests/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License

# pyre-strict
from __future__ import annotations

import asyncio
Expand Down
2 changes: 2 additions & 0 deletions later/tests/test_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
# License for the specific language governing permissions and limitations
# under the License

# pyre-strict

import unittest

import later
Expand Down
2 changes: 2 additions & 0 deletions later/tests/unittest/test_case.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License

# pyre-strict
from __future__ import annotations

import asyncio
Expand Down
2 changes: 2 additions & 0 deletions later/tests/unittest/test_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License

# pyre-strict
from unittest.mock import call

from later.unittest import TestCase
Expand Down
2 changes: 2 additions & 0 deletions later/unittest/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

# pyre-strict
from .case import ignoreAsyncioErrors, ignoreTaskLeaks, TestCase


Expand Down
2 changes: 2 additions & 0 deletions later/unittest/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

# pyre-strict
"""
This TestCase attempts to track all tasks so that they are ensured to have
been awaited. Any time asyncio calls logger.error() it is considered a
Expand Down
2 changes: 2 additions & 0 deletions later/unittest/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations
# under the License.

# pyre-strict
from __future__ import annotations

from typing import Any
Expand Down

0 comments on commit dec32b8

Please sign in to comment.