Skip to content

test pr #2

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

Closed
wants to merge 1 commit into from
Closed

test pr #2

wants to merge 1 commit into from

Conversation

MarkDaoust
Copy link
Owner

No description provided.

@MarkDaoust MarkDaoust force-pushed the test-test branch 7 times, most recently from 5e7fb1b to 9c2a7b1 Compare May 25, 2023 23:59
@MarkDaoust MarkDaoust closed this Jun 12, 2023
MarkDaoust added a commit that referenced this pull request May 3, 2024
* Add metaclass to inject Permission methods

Set PermissionAdapterMeta as a metaclass for Corpus and TunedModel classes to inject permission methods dynamically.

* Add method to validate permission name

* Allow accepting partial name for get_permission methods

* Fix consistency issues

* Update tests

* Remove metaclasses and use inheritance instead

* format

* Update tests and fix pytpye error

* Update tests

* disable attribute error for PermissionsAdapter - pytpye for `self.name` field

* Format

* Handle partial names in get_permissions methods

* Update tests

* Update docsting for get_permission method

* format

* Add guard against invalid full name formats

* Update tests

* format

* Update Valid Permission Name regex

* Separate resource name validation for get_permission methods

* Make 	o_proto method internal for Permission class

	o_proto to _to_proto and update invlaid error message for permission_id.

* Update error messages

* started editing the permissions class

Change-Id: Idf1b9e8b0fff498a1c4fd4785c09eb49963c1d47

* Fix tests

Change-Id: Id8cc1cf6e59009f06e8db3ff59edd7ef6ac76943

* Add type hints.

Change-Id: I91f759fe3ebe4e3011440a3983a4cbfc317856d0

* Fix transfer_ownership for Corpora

Change-Id: I791514660881ce967c405e4c76f44739968362f9

* format

Change-Id: I0f98fc80fe81a8fc69aea9f00386aa2c519cb7e0

* Simplify error msgs

* Simplify name checks

* Add deprecation stubs on Corpus

* Fix decorator type checking

ast.Call.func can be of types ast.Attribute and ast.Name, previously only ast.Name was being considered.

* fix types

* fix types (#2)

* Update retriever_types.py

* Update retriever_types.py

---------

Co-authored-by: Mark Daoust <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant