Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove InheritedDocs metaclass #1244

Merged
merged 2 commits into from
Feb 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading