From 70ab993819f0bb4345791f2d3106dc9469d9fd6c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:36:13 +0000 Subject: [PATCH 1/2] Initial plan From b5cc03ea8d33408bb0e721ede32e04f4091162d8 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 21 Nov 2025 06:40:40 +0000 Subject: [PATCH 2/2] Remove warning parameter and warning code from Adapter Co-authored-by: nomeguy <85475922+nomeguy@users.noreply.github.com> --- casbin_async_sqlalchemy_adapter/adapter.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/casbin_async_sqlalchemy_adapter/adapter.py b/casbin_async_sqlalchemy_adapter/adapter.py index e919a97..daff6bb 100644 --- a/casbin_async_sqlalchemy_adapter/adapter.py +++ b/casbin_async_sqlalchemy_adapter/adapter.py @@ -11,7 +11,6 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -import warnings from contextlib import asynccontextmanager from typing import List, Optional @@ -68,7 +67,6 @@ def __init__( engine, db_class=None, filtered=False, - warning=True, db_session: Optional[AsyncSession] = None, ): if isinstance(engine, str): @@ -78,12 +76,6 @@ def __init__( if db_class is None: db_class = CasbinRule - if warning: - warnings.warn( - "Using default CasbinRule table, please note the use of the 'Adapter().create_table()' method" - " to create the table, and ignore this warning if you are using a custom CasbinRule table.", - RuntimeWarning, - ) else: for attr in ( "id",