@@ -333,7 +333,12 @@ fn build_latest_dev_dependencies(project_info: &ProjectInfo) -> Result<String> {
333333 for package in packages {
334334 match project_info. project_manager {
335335 ProjectManager :: Poetry => {
336- if package. package == PythonPackage :: Tomli {
336+ if package. package == PythonPackage :: MyPy {
337+ version_string. push_str ( & format ! (
338+ "{} = {{version = \" {}\" , extras = [\" faster-cache\" ]}}\n " ,
339+ package. package, package. version
340+ ) ) ;
341+ } else if package. package == PythonPackage :: Tomli {
337342 version_string. push_str ( & format ! (
338343 "{} = {{version = \" {}\" , python = \" <3.11\" }}\n " ,
339344 package. package, package. version
@@ -349,7 +354,12 @@ fn build_latest_dev_dependencies(project_info: &ProjectInfo) -> Result<String> {
349354 }
350355 }
351356 ProjectManager :: Uv | ProjectManager :: Pixi => {
352- if package. package == PythonPackage :: Mkdocstrings {
357+ if package. package == PythonPackage :: MyPy {
358+ version_string. push_str ( & format ! (
359+ " \" {}[faster-cache]=={}\" ,\n " ,
360+ package. package, package. version
361+ ) ) ;
362+ } else if package. package == PythonPackage :: Mkdocstrings {
353363 version_string. push_str ( & format ! (
354364 " \" {}[python]=={}\" ,\n " ,
355365 package. package, package. version
@@ -365,7 +375,12 @@ fn build_latest_dev_dependencies(project_info: &ProjectInfo) -> Result<String> {
365375 if let Some ( pyo3_python_manager) = & project_info. pyo3_python_manager {
366376 match pyo3_python_manager {
367377 Pyo3PythonManager :: Uv => {
368- if package. package == PythonPackage :: Mkdocstrings {
378+ if package. package == PythonPackage :: MyPy {
379+ version_string. push_str ( & format ! (
380+ " \" {}[faster-cache]=={}\" ,\n " ,
381+ package. package, package. version
382+ ) ) ;
383+ } else if package. package == PythonPackage :: Mkdocstrings {
369384 version_string. push_str ( & format ! (
370385 " \" {}[python]=={}\" ,\n " ,
371386 package. package, package. version
@@ -378,7 +393,12 @@ fn build_latest_dev_dependencies(project_info: &ProjectInfo) -> Result<String> {
378393 }
379394 }
380395 Pyo3PythonManager :: Setuptools => {
381- if package. package == PythonPackage :: Mkdocstrings {
396+ if package. package == PythonPackage :: MyPy {
397+ version_string. push_str ( & format ! (
398+ "{}[faster-cachw]=={}\n " ,
399+ package. package, package. version
400+ ) ) ;
401+ } else if package. package == PythonPackage :: Mkdocstrings {
382402 version_string. push_str ( & format ! (
383403 "{}[python]=={}\n " ,
384404 package. package, package. version
@@ -396,7 +416,12 @@ fn build_latest_dev_dependencies(project_info: &ProjectInfo) -> Result<String> {
396416 }
397417 }
398418 ProjectManager :: Setuptools => {
399- if package. package == PythonPackage :: Mkdocstrings {
419+ if package. package == PythonPackage :: MyPy {
420+ version_string. push_str ( & format ! (
421+ "{}[faster-cache]=={}\n " ,
422+ package. package, package. version
423+ ) ) ;
424+ } else if package. package == PythonPackage :: Mkdocstrings {
400425 version_string. push_str ( & format ! (
401426 "{}[python]=={}\n " ,
402427 package. package, package. version
0 commit comments