[3.10] Remove trailing spaces (GH-28709)

diff --git a/Lib/test/test_syntax.py b/Lib/test/test_syntax.py
index f9deb7b..45b2785 100644
--- a/Lib/test/test_syntax.py
+++ b/Lib/test/test_syntax.py
@@ -1298,7 +1298,7 @@ def _check_error(self, code, errtext,
                 self.assertEqual(err.end_lineno, end_lineno)
             if end_offset is not None:
                 self.assertEqual(err.end_offset, end_offset)
- 
+
         else:
             self.fail("compile() did not raise SyntaxError")
 
@@ -1438,7 +1438,7 @@ def test_kwargs_last3(self):
         self._check_error("int(**{'base': 10}, *['2'])",
                           "iterable argument unpacking follows "
                           "keyword argument unpacking")
-    
+
     def test_generator_in_function_call(self):
         self._check_error("foo(x,    y for y in range(3) for z in range(2) if z    , p)",
                           "Generator expression must be parenthesized",
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py
index 3258298..db929bd 100644
--- a/Lib/test/test_time.py
+++ b/Lib/test/test_time.py
@@ -1062,7 +1062,7 @@ def test_clock_functions(self):
         clock_names = [
             "CLOCK_MONOTONIC", "clock_gettime", "clock_gettime_ns", "clock_settime",
             "clock_settime_ns", "clock_getres"]
-        
+
         if mac_ver >= (10, 12):
             for name in clock_names:
                 self.assertTrue(hasattr(time, name), f"time.{name} is not available")
diff --git a/Lib/typing.py b/Lib/typing.py
index 8590830..f842fc2 100644
--- a/Lib/typing.py
+++ b/Lib/typing.py
@@ -99,7 +99,7 @@
     'NamedTuple',  # Not really a type.
     'TypedDict',  # Not really a type.
     'Generator',
- 
+
     # Other concrete types.
     'BinaryIO',
     'IO',