Skip to content

Commit

Permalink
remove 'reportCallInDefaultInitializer' rule
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeshardmind committed Jul 24, 2024
1 parent c94bcaa commit b8eb0d3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion async_utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# limitations under the License.


__version__ = "5.0.0"
__version__ = "5.0.1"
8 changes: 6 additions & 2 deletions async_utils/scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
from functools import total_ordering
from time import time
from types import TracebackType
from typing import Generic, TypeVar
from typing import Any, Generic, TypeVar

__all__ = ("Scheduler",)


MISSING: Any = object()
T = TypeVar("T")


Expand Down Expand Up @@ -55,6 +55,10 @@ class Scheduler(Generic[T]):

def __init__(self, granularity: float, /):
self.__granularity = granularity
self.__closed = MISSING
self.__tasks = MISSING
self.__tqueue = MISSING
self.__l = MISSING

async def __aenter__(self):
self.__closed = False
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ exclude = [
pythonVersion = "3.11"
typeCheckingMode = "strict"
pythonPlatform = "All"
reportCallInDefaultInitializer = "warning"
reportImportCycles = "error"
reportPropertyTypeMismatch = "error"
reportShadowedImports = "error"
Expand Down

0 comments on commit b8eb0d3

Please sign in to comment.