Skip to content

Commit 526a578

Browse files
committed
fix: add type ignore for dynamic attribute assignment
- Mypy doesn't understand dynamic attributes on Callable types - Add type: ignore comment to suppress the error - This is a common pattern for decorators that add attributes
1 parent ed218ad commit 526a578

File tree

1 file changed

+1
-1
lines changed
  • src/firebase_functions/private

1 file changed

+1
-1
lines changed

src/firebase_functions/private/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def set_func_endpoint_attr(
6161
func: _typing.Callable[P, _typing.Any],
6262
endpoint: _typing.Any,
6363
) -> _typing.Callable[P, _typing.Any]:
64-
func.__firebase_endpoint__ = endpoint
64+
func.__firebase_endpoint__ = endpoint # type: ignore
6565
return func
6666

6767

0 commit comments

Comments
 (0)