Skip to content

Commit

Permalink
Remove InheritedDocs metaclass (#1244)
Browse files Browse the repository at this point in the history
* Remove unnecessary metaclass

* Remove test
  • Loading branch information
jsfehler authored Feb 26, 2024
1 parent dd6da8a commit 4974354
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 89 deletions.
3 changes: 1 addition & 2 deletions splinter/cookie_manager.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# Copyright 2012 splinter authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
from splinter.meta import InheritedDocs


class CookieManagerAPI(InheritedDocs("_CookieManagerAPI", (object,), {})): # type: ignore
class CookieManagerAPI:
"""An API that specifies how a splinter driver deals with cookies.
You can add cookies using the :meth:`add <CookieManagerAPI.add>` method,
Expand Down
5 changes: 2 additions & 3 deletions splinter/driver/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@

from splinter.cookie_manager import CookieManagerAPI
from splinter.element_list import ElementList
from splinter.meta import InheritedDocs


class DriverAPI(InheritedDocs("_DriverAPI", (object,), {})): # type: ignore
class DriverAPI:
"""
Basic driver API class.
"""
Expand Down Expand Up @@ -730,7 +729,7 @@ def cookies(self) -> Type[CookieManagerAPI]:
)


class ElementAPI(InheritedDocs("_ElementAPI", (object,), {})): # type: ignore
class ElementAPI:
"""
Basic element API class.
Expand Down
29 changes: 0 additions & 29 deletions splinter/meta.py

This file was deleted.

55 changes: 0 additions & 55 deletions tests/test_meta.py

This file was deleted.

0 comments on commit 4974354

Please sign in to comment.