You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please provide more information to help us understand the issue:
class Foo:
num: int = 1
msg: str = "hello"
FooProtocol = protocol(Foo, include_private=False)
FooLookalike = NamedTuple("FooLookalike", [("num", int), ("msg", str)])
# ok
maybe_foo: FooProtocol = FooLookalike(num=2, msg="bye")
# ok
maybe_foo = Foo()
# safely cast when using Fakes in a test
test_foo(cast(Foo, maybe_foo))
The text was updated successfully, but these errors were encountered:
On one hand this would be pretty straightforward to add, but on another hand we should be careful with managing extra dependencies caused by this (especially in fine-grained mode, that may be tricky).
Please provide more information to help us understand the issue:
The text was updated successfully, but these errors were encountered: