mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	CI: Bump Python to 3.13 and mypy to 1.12 in mypy workflow (#125592)
* Bump mypy to 1.12 & Python to 3.13 * Remove unnecessary `type: ignore`
This commit is contained in:
		
							parent
							
								
									e4d90be845
								
							
						
					
					
						commit
						d83fcf8371
					
				
					 3 changed files with 3 additions and 5 deletions
				
			
		
							
								
								
									
										2
									
								
								.github/workflows/mypy.yml
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.github/workflows/mypy.yml
									
										
									
									
										vendored
									
									
								
							| 
						 | 
				
			
			@ -53,7 +53,7 @@ jobs:
 | 
			
		|||
      - uses: actions/checkout@v4
 | 
			
		||||
      - uses: actions/setup-python@v5
 | 
			
		||||
        with:
 | 
			
		||||
          python-version: "3.11"
 | 
			
		||||
          python-version: "3.13"
 | 
			
		||||
          cache: pip
 | 
			
		||||
          cache-dependency-path: Tools/requirements-dev.txt
 | 
			
		||||
      - run: pip install -r Tools/requirements-dev.txt
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -545,9 +545,7 @@ def closure(f: CConverterClassT) -> CConverterClassT:
 | 
			
		|||
        if not kwargs:
 | 
			
		||||
            added_f = f
 | 
			
		||||
        else:
 | 
			
		||||
            # type ignore due to a mypy regression :(
 | 
			
		||||
            # https://github.com/python/mypy/issues/17646
 | 
			
		||||
            added_f = functools.partial(f, **kwargs)  # type: ignore[misc]
 | 
			
		||||
            added_f = functools.partial(f, **kwargs)
 | 
			
		||||
        if format_unit:
 | 
			
		||||
            legacy_converters[format_unit] = added_f
 | 
			
		||||
        return f
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,6 +1,6 @@
 | 
			
		|||
# Requirements file for external linters and checks we run on
 | 
			
		||||
# Tools/clinic, Tools/cases_generator/, and Tools/peg_generator/ in CI
 | 
			
		||||
mypy==1.11.2
 | 
			
		||||
mypy==1.12
 | 
			
		||||
 | 
			
		||||
# needed for peg_generator:
 | 
			
		||||
types-psutil==6.0.0.20240901
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue