Skip to content

Commit

Permalink
reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
hit9 committed Apr 10, 2024
1 parent 5159d59 commit 0f3337d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
1 change: 1 addition & 0 deletions compiler/bitproto/renderer/formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
Formatter class base.
"""

import os
from abc import abstractmethod
from enum import Enum as Enum_, unique
Expand Down
1 change: 1 addition & 0 deletions compiler/bitproto/renderer/impls/py/renderer.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
"""
Renderer for Python.
"""

from abc import abstractmethod
from typing import Any, List, Optional

Expand Down
9 changes: 3 additions & 6 deletions compiler/bitproto/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,7 @@ def __init__(self, func: Callable[[I], O]) -> None:
self.func = func

@overload
def __get__(self, obj: None, cls: T[I]) -> "cached_property":
...
def __get__(self, obj: None, cls: T[I]) -> "cached_property": ...

@overload
def __get__(self, obj: I, cls: T[I]) -> O: # type: ignore
Expand All @@ -138,13 +137,11 @@ def __get__(self, obj: Optional[I], cls: T[I]) -> Union["cached_property", O]:


@overload
def frozen(class_: C) -> C:
...
def frozen(class_: C) -> C: ...


@overload
def frozen(*, safe_hash: bool = True, post_init: bool = True) -> Callable[[C], C]:
...
def frozen(*, safe_hash: bool = True, post_init: bool = True) -> Callable[[C], C]: ...


def frozen(
Expand Down

0 comments on commit 0f3337d

Please sign in to comment.