@@ -31,7 +31,7 @@ impl<'a, 'py> FromPyObject<'a, 'py> for PythonType {
3131 // https://docs.python.org/3/library/datetime.html
3232 let mod_datetime = py. import ( intern ! ( py, "datetime" ) ) ?;
3333 let type_date = mod_datetime. getattr ( intern ! ( py, "date" ) ) ?;
34- let type_dateime = mod_datetime. getattr ( intern ! ( py, "datetime" ) ) ?;
34+ let type_datetime = mod_datetime. getattr ( intern ! ( py, "datetime" ) ) ?;
3535 let type_time = mod_datetime. getattr ( intern ! ( py, "time" ) ) ?;
3636 let type_timedelta = mod_datetime. getattr ( intern ! ( py, "timedelta" ) ) ?;
3737
@@ -45,7 +45,7 @@ impl<'a, 'py> FromPyObject<'a, 'py> for PythonType {
4545 Ok ( Self :: Bytes )
4646 } else if ob. is ( type_date) {
4747 Ok ( Self :: Date )
48- } else if ob. is ( type_dateime ) {
48+ } else if ob. is ( type_datetime ) {
4949 Ok ( Self :: DateTime )
5050 } else if ob. is ( type_float) {
5151 Ok ( Self :: Float )
@@ -107,7 +107,7 @@ impl<'a, 'py> FromPyObject<'a, 'py> for PythonNullableType {
107107
108108 if args. len ( ) != 1 {
109109 return Err ( PyErr :: new :: < PyTypeError , _ > ( format ! (
110- "only unions of form `T | None` are suppored , but got a union of {} distinct none-NULL types" ,
110+ "only unions of form `T | None` are supported , but got a union of {} distinct none-NULL types" ,
111111 args. len( )
112112 ) ) ) ;
113113 }
@@ -156,7 +156,7 @@ impl<'a, 'py> FromPyObject<'a, 'py> for PythonFnSignature {
156156 let kind_name = kind_name. to_str ( ) ?;
157157 if ( kind_name != "POSITIONAL_OR_KEYWORD" ) && ( kind_name != "POSITIONAL_ONLY" ) {
158158 return Err ( PyErr :: new :: < PyTypeError , _ > (
159- format ! ( "only paramters of kind `POSITIONAL_OR_KEYWORD` and `POSITIONAL_ONLY` are supported, got {kind_name}" )
159+ format ! ( "only parameters of kind `POSITIONAL_OR_KEYWORD` and `POSITIONAL_ONLY` are supported, got {kind_name}" )
160160 ) ) ;
161161 }
162162
0 commit comments