hbmartin commited on
Commit
7e33465
·
1 Parent(s): b2b9291

reformatting

Browse files
Files changed (2) hide show
  1. pytube/query.py +1 -4
  2. tests/test_helpers.py +0 -1
pytube/query.py CHANGED
@@ -296,10 +296,7 @@ class StreamQuery:
296
 
297
  """
298
  return (
299
- self.filter(only_audio=True, subtype=subtype)
300
- .order_by("abr")
301
- .asc()
302
- .last()
303
  )
304
 
305
  def first(self) -> Optional[Stream]:
 
296
 
297
  """
298
  return (
299
+ self.filter(only_audio=True, subtype=subtype).order_by("abr").asc().last()
 
 
 
300
  )
301
 
302
  def first(self) -> Optional[Stream]:
tests/test_helpers.py CHANGED
@@ -1,6 +1,5 @@
1
  # -*- coding: utf-8 -*-
2
  from unittest import mock
3
- from unittest.mock import MagicMock
4
 
5
  import pytest
6
 
 
1
  # -*- coding: utf-8 -*-
2
  from unittest import mock
 
3
 
4
  import pytest
5