@@ -79,10 +79,10 @@ async def find(
7979 tag_name : Optional [str ] = ...,
8080 text : Optional [str ] = ...,
8181 timeout : int = ...,
82- find_all : Literal [True ] = True ,
83- raise_exc : Literal [True ] = True ,
82+ find_all : Literal [False ] = False ,
83+ raise_exc : Literal [False ] = False ,
8484 ** attributes ,
85- ) -> list [WebElement ]: ...
85+ ) -> Optional [WebElement ]: ...
8686
8787 @overload
8888 async def find (
@@ -94,9 +94,9 @@ async def find(
9494 text : Optional [str ] = ...,
9595 timeout : int = ...,
9696 find_all : Literal [True ] = True ,
97- raise_exc : Literal [False ] = False ,
97+ raise_exc : Literal [True ] = True ,
9898 ** attributes ,
99- ) -> Optional [ list [WebElement ] ]: ...
99+ ) -> list [WebElement ]: ...
100100
101101 @overload
102102 async def find (
@@ -107,10 +107,10 @@ async def find(
107107 tag_name : Optional [str ] = ...,
108108 text : Optional [str ] = ...,
109109 timeout : int = ...,
110- find_all : Literal [False ] = False ,
110+ find_all : Literal [True ] = True ,
111111 raise_exc : Literal [False ] = False ,
112112 ** attributes ,
113- ) -> Optional [WebElement ]: ...
113+ ) -> Optional [list [ WebElement ] ]: ...
114114
115115 @overload
116116 async def find (
0 commit comments